New week, new Rust! What are you folks up to?
Conway's Game of Life in Rust, for fun.
I'm adding a new feature to Mockall: the ability to #[automock] structs with multiple trait impls, so you won't have to use mock! anymore. Like this:
pub struct Bar {}
#[automock]
#[mockall::trait_impl(Foo)]
impl Bar {
pub fn bar(&self, _x: i64) -> u32 {
unimplemented!()
}
}
#[automock]
impl Foo for Bar {
fn foo(&self, _x: u32) -> i64 {
unimplemented!()
}
}
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.