Search
Items tagged with: RustCataStructures
impl Stool for Cat {<br> pub fn peek(&self) -> View {<br>
Original by @cat : tea.codes/@cat/113487015026074…
#RustCataStructures #rust #RustLang #cat #CatsOfMastodon #Caturday
let floor = Floor::default();<br>let mut bowl = Bowl::new();<br>let mut cat = Cat::mew();<br><br>bowl.place_on(&floor);<br>cat.sit_on(&bowl);<br><br>let floor: &mut Floor = unsafe {<br> &mut *(&floor as *const Floor as *mut Floor)<br>};<br><br>floor.lower_by(50 * CM);<br>
Levitation needs some unsafe
code, but not around the cat, cats don't take fall damage.
Original post by @Kyu : meow.social/@Kyu/1095710305682…
#RustCataStructures #rust #RustLang #cat #CatsOfMastodon
panic!("HOOMAN IS TORTURING CAT USING WATER!!!111oneone");<br>
Source: imgur.com/iSfrFmX
#RustCataStructures #rust #RustLang #RustLanguage #cat #CatsOfMastodon
railing[i-1..=i+2].copy_from_slice(&[cat.tail, cat.hind_legs, cat.front_legs, cat.head]);<br>
#RustCataStructures #rust #RustLang #RustLanguage #cat #CatsOfMastodon
let four_cats: Vec<(Cat, Color)> = vec![rand::random::(Cat, Color); 4];<br>let cats = [vec![rand::random::(Cat, Color); 2], four_cats.clone(), four_cats, vec![rand::random::(Cat, Color)]].into_iter().flatten().collect::<Vec<_>>();<br>
Ahhh, this one was tricky 😅
Source: mastodon.nl/@ErikSchouten73/10…
#cat #CatsOfMastodon #rust #RustLanguage #RustLang #RustCataStructures