Vivia 🦆🍵🦀 · @vivia
140 followers · 1663 posts · Server toot.cat
Vivia 🦆🍵🦀 · @vivia
138 followers · 1643 posts · Server toot.cat
let mut vec = Vec::new();
vec.push(Cat::new(Color::BlackAndWhite));
vec.push(Cat::new(Color::Black));
vec.push(Cat::new(Color::Black));

Original by @Gazpics76 : mas.to/@Gazpics76/110004498444

#rustcatastructures #rust #rustlang #cat #catsofmastodon #caturday

Last updated 2 years ago

Vivia 🦆🍵🦀 · @vivia
136 followers · 1616 posts · Server toot.cat
Vivia 🦆🍵🦀 · @vivia
136 followers · 1585 posts · Server toot.cat
Vivia 🦆🍵🦀 · @vivia
135 followers · 1572 posts · Server toot.cat
let inspection_results = office.iter().map(|tile| {
if tile.is_empty() {
inspector_cat.move_to(tile);
inspector_cat.inspect(tile)
}
}).collect();

Original by @i0null : infosec.exchange/@i0null/10995

#rustcatastructures #rust #rustlang #cat #catsofmastodon

Last updated 2 years ago

Vivia 🦆🍵🦀 · @vivia
135 followers · 1566 posts · Server toot.cat
let knitted_cushion = cat_on_cushion.knitted_cushion;

for _ in knitted_cushion
.iter()
.cycle()
.take((knitted_cushion.len() as f64 * 3.5).floor() as usize)
{
cat_on_cushion.rotate_right(1);
}

Original by @cat : tea.codes/@cat/109949434319664

#rustcatastructures #rust #rustlang #cat #catsofmastodon

Last updated 2 years ago

Vivia 🦆🍵🦀 · @vivia
133 followers · 1552 posts · Server toot.cat

Today's non-Rust special: git absorb. I just found out about it yesterday and wanted to spread the word. In fact, it is written in Rust, it's just not about the language itself. github.com/tummychow/git-absor

Source: reddit.com/r/wetcats/comments/

#rustcatastructures #rust #rustlang #cat #catsofmastodon

Last updated 2 years ago

Vivia 🦆🍵🦀 · @vivia
132 followers · 1539 posts · Server toot.cat
Vivia 🦆🍵🦀 · @vivia
132 followers · 1519 posts · Server toot.cat
Vivia 🦆🍵🦀 · @vivia
131 followers · 1509 posts · Server toot.cat

(Box::old((Some(gray_tabby), Some(tortoiseshell)),
Box::old((Some(calico), None)),
Box::old(None),
Box::old(None))

#rustcatastructures #rust #rustlang #cat #catsofmastodon #caturday

Last updated 2 years ago

Vivia 🦆🍵🦀 · @vivia
131 followers · 1491 posts · Server toot.cat
Vivia 🦆🍵🦀 · @vivia
131 followers · 1480 posts · Server toot.cat
Vivia 🦆🍵🦀 · @vivia
129 followers · 1473 posts · Server toot.cat
Vivia 🦆🍵🦀 · @vivia
129 followers · 1467 posts · Server toot.cat
use deflate::deflate_bytes as deflate;
let compressed_cat = deflate(Cat::new());

use inflate::inflate_bytes as inflate;
let uncompressed_cat = inflate(CompressedCat::new()).unwrap();

(compressed_cat, uncompressed_cat)

Original by @catsnkittens : botsin.space/@catsnkittens/109

#rustcatastructures #rust #rustlang #cat #catsofmastodon

Last updated 2 years ago

Vivia 🦆🍵🦀 · @vivia
129 followers · 1445 posts · Server toot.cat
Jason 🦓 Gerard 🦀 DeRose · @_json420
77 followers · 119 posts · Server fosstodon.org

@vivia I do find myself looking forward to your daily 😃

#rustcatastructures

Last updated 2 years ago

Vivia 🦆🍵🦀 · @vivia
128 followers · 1429 posts · Server toot.cat
Vivia 🦆🍵🦀 · @vivia
128 followers · 1417 posts · Server toot.cat
Vivia 🦆🍵🦀 · @vivia
128 followers · 1392 posts · Server toot.cat
Vivia 🦆🍵🦀 · @vivia
127 followers · 1372 posts · Server toot.cat