shelf[0] = ShelfDeque::new();
shelf[1] = ShelfDeque::new();
shelf[1].push_top(towels);
shelf[1].push_top(cat);

Source: https://x.com/Snip6974/status/2062458688808386793/photo/1

#RustCataStructures #rust #RustLang #cat #CatsOfMastodon #ProgrammingHumor #Funny

use gc::Trace;

Now that cats approve of Rust's garbage collection, it means that it's really established.

Pictured: Baghera, @imperio 's cat.

#RustCataStructures #rust #RustLang #cat #CatsOfMastodon #Caturday

while disk.turn() {
cat.turn();
}

Source: A friend's meme collection, but I found a longer version at https://www.youtube.com/watch?v=K7dcSr04G8s

#RustCataStructures #rust #RustLang #cat #CatsOfMastodon

for index in -4..12 {
println!("cat: {}", cats[index]);
}

Thanks to @imperio for today's submission!

#RustCataStructures #Rust #RustLang #cat #CatsOfMastodon

use fridge::WaterCooler;

let watercooler = WaterCooler::in_kitchen();
let water = watercooler.run();
drink(water);

Original by https://www.reddit.com/r/HydroHomies/comments/11l56ft/do_we_accept_cats_into_our_ranks_not_oc/

#RustCataStructures #rust #RustLang #cat #CatsOfMastodon #Caturday #็Œซใฎๆ—ฅ

cliffle (@[email protected])

Attached: 1 image Found on the SD card in my thermal camera, from probably 2011. Consider this my belated #caturday contribution.

Hachyderm.io
struct Hat();

struct ChristmasCat (
either::Either::<Hat, Hat>,
);

impl ChristmasCat {

fn hunt(&mut self) {
if !self.0.is_left() && !self.0.is_right() {
unreachable!()
}
}
}

Original by @catsalad : https://infosec.exchange/@catsalad/113793442243881502

#RustCataStructures #rust #RustLang #cat #CatsOfMastodon

CatSalad๐Ÿˆ๐Ÿฅ— (D.Burch) :blobcatrainbow: (@[email protected])

Attached: 1 image When there's an elusive bug in your code, but you just can't find it. :neocat_floof_owo:

Infosec Exchange
#[repr(transparent)]
struct PhantomCat<Curtain, Cat> {
curtain: Curtain,
cat: PhantomData<Cat>
}

Original by @isaactly_s : https://mas.to/@isaactly_s/113656471392915829

#RustCataStructures #rust #RustLang #cat #CatsOfMastodon

Iฦงฮ›ฮ›C (@[email protected])

Attached: 1 image Behold, the master of stealth, #Fariรฑa :catto: #catsofmastodon #allcatsarebeautiful #fedicats

mas.to