#rustcatastructures — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #rustcatastructures, aggregated by home.social.
-
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
-
let tama = core::sakura::Wrapping::<Cat>(tama);Original by @catsalad : https://infosec.exchange/@catsalad/114250283013049783
#RustCataStructures #rust #RustLang #cat #CatsOfMastodon #ProgrammingHumor
-
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
-
RE: https://infosec.exchange/@catsalad/115311221220589128
impl Into<Box<Lego>> for Cat {
fn into(self) -> Box::new(Lego {})
}#RustCataStructures #rust #RustLang #cat #CatsOfMastodon #Caturday
-
for index in -4..12 {
println!("cat: {}", cats[index]);
}Thanks to @imperio for today's submission!
-
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 #猫の日
-
cargo flamegraphOriginal image by @cliffle : https://hachyderm.io/@cliffle/113897048408999899
-
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
-
#[repr(transparent)]
struct PhantomCat<Curtain, Cat> {
curtain: Curtain,
cat: PhantomData<Cat>
}Original by @isaactly_s : https://mas.to/@isaactly_s/113656471392915829
-
impl Stool for Cat {
pub fn peek(&self) -> View {Original by @cat : https://tea.codes/@cat/113487015026074956
#RustCataStructures #rust #RustLang #cat #CatsOfMastodon #Caturday
-
for i in 0..4 {
let kitten_clone[i] = kitten.clone();
}Original by @cat : https://tea.codes/@cat/113451857713168610
#RustCataStructures #rust #RustLang #cat #CatsOfMastodon #Caturday
-
impl WashingMachine {
pub fn spin(&self, bowl: &mut Option<Box<Cat>>) {
while !self.done {
self.tub.rotate(1);
if let Some(ref mut bowl) = bowl {
bowl >>= 1;
}
}
}
}Original by @catsalad : https://infosec.exchange/@catsalad/113365990287589252
#RustCataStructures #Caturday #Rust #RustLang #cat #cats #CatsOfMastodon
-
while let None = washing_machine.open_door()Original by @cat : https://tea.codes/@cat/112563892645819611
-
impl IsA<Croissant> for CatOriginal by @stux : https://mstdn.social/@stux/112514759420411424
-
pub trait DrinkContainer {
fn fill_from(&mut self, cooler: &mut WaterCooler);
}
impl DrinkContainer for Cat {Original by @yurnidiot : https://mstdn.social/@yurnidiot/112215091524887441
-
table.roll_over().ok_or_else(|balance| {
drop(balance);
panic!("I'm falling off!");
} -
🐱.par_iter().map(|🐱| 🐱.walk()).collect();Source: https://infosec.exchange/@i0null/111988922276666577
#RustCataStructures #rust #RustLang #cat #cats #CatsOfMastodon #猫 #ねこ #子猫
-
impl Bird for Cat {
fn perch (&self, branch: Branch<Tree>) {Source: @catsnkittens https://reddit.com/r/cats/comments/162oh97/what_do_you_call_it/
-
impl Drop for Pillow {
fn drop(&mut self) {
unsafe {
mem::swap(&mut cat_pillow, self);
}
}
}Source: @memeinmymastodon https://mastodon.social/@memeinmymastodon/110958399083275132
-
Vec<(Cat, Bowl<Food<Cat>>)>Original by @eocanha : https://toot.cat/@eocanha/110680884548475455
#RustCataStructures #rust #RustLang #cat #cats #CatsOfMastodon
-
cargo cakeHappy birthday, Rust!
Source: https://www.reddit.com/r/AnimalsBeingJerks/comments/5v12hw/cat_ruined_cake_xposted_from_raww/
#RustCataStructures #Rust #RustLang #cat #cats #CatsOfMastodon
-
if TypeId::of::<Dog>() == intruder.type_id() {
bail!("No dogs allowed!");
}Original by @i0null : https://infosec.exchange/@i0null/110302232292935412
-
tissue_box
.iter()
.take_while(|_| :blobcatbongo:)
.for_each(|tissue| tissue.drop());Original by @i0null : https://infosec.exchange/@i0null/110217988356184729
-
(Vec<Vec<Box<Vec<Cat>>>>,
HashSet<Cat>,
[Vec<Barrel<Vec<Cat>>>; 2])Source: @catsnkittens : https://botsin.space/@catsnkittens/110212408376164102 , in turn via https://redd.it/12of6qc