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§

source

fn next_number(&self, num: usize) -> usize

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ConstExample for usize

source§

fn next_number(&self, num: usize) -> usize

Implementors§

source§

impl<'lt, _ErasedPtr> ConstExample for ConstExample_TO<'lt, _ErasedPtr>
where Self: Clone + Debug, _ErasedPtr: AsPtr<PtrTarget = ()>,