Trait abi_stable::sabi_trait::doc_examples::Doer

source ·
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.

Required Methods§

source

fn value(&self) -> usize

source

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

source

fn add_into(&mut self, num: usize)

Implementations on Foreign Types§

source§

impl Doer for usize

source§

fn value(&self) -> usize

source§

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

source§

fn add_into(&mut self, num: usize)

Implementors§

source§

impl<'lt, _ErasedPtr> Doer for Doer_TO<'lt, _ErasedPtr>
where Self: Debug, _ErasedPtr: AsMutPtr<PtrTarget = ()>,