pub trait Doer: Debug {
// Required methods
fn value(&self) -> usize;
fn do_it(&self, num: usize) -> usize;
fn add_into(&mut self, num: usize);
}
Expand description
An example trait object that uses RObject
as a backend.
pub trait Doer: Debug {
// Required methods
fn value(&self) -> usize;
fn do_it(&self, num: usize) -> usize;
fn add_into(&mut self, num: usize);
}
An example trait object that uses RObject
as a backend.