pub trait ConstExample: Clone + Debug {
// Required method
fn next_number(&self, num: usize) -> usize;
}
Expand description
An example trait, used to show what #[sabi_trait]
generates in the docs.
Required Methods§
Sourcefn next_number(&self, num: usize) -> usize
fn next_number(&self, num: usize) -> usize
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.