Sha256: d14d5c191613c45a2687493ace29e8dcda532be9a09a792ee04d96b7a2994978
Contents?: true
Size: 385 Bytes
Versions: 39
Compression:
Stored size: 385 Bytes
Contents
mod borrows; #[derive(Clone)] pub enum A { B { x: u32, y: u32 }, } struct Context(A); impl borrows::Context for Context { fn get_a(&mut self, _: u32) -> Option<A> { Some(self.0.clone()) } fn u32_pure(&mut self, value: u32) -> Option<u32> { Some(value + 1) } } fn main() { borrows::constructor_entry(&mut Context(A::B { x: 1, y: 2 }), 42); }
Version data entries
39 entries across 39 versions & 1 rubygems