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
=> More informations about this toot | View the thread | More toots from vivia@toot.cat
=> View catsalad@infosec.exchange profile
=> View rustcatastructures tag | View rust tag | View rustlang tag | View cat tag | View catsofmastodon tag This content has been proxied by September (ba2dc).Proxy Information
text/gemini