pub trait Action: Debug {
    // Required methods
    fn get(&self) -> usize;
    fn add_mut(&mut self, val: usize) -> usize;
    fn add_into(self, val: usize) -> usize
       where Self: Sized;
}
Expand description

The trait used in examples of #[sabi_trait] trait object methods, in abi_stable::docs::sabi_trait_inherent

Required Methods§

source

fn get(&self) -> usize

Gets the current value of self.

source

fn add_mut(&mut self, val: usize) -> usize

Adds val into self, returning the new value.

source

fn add_into(self, val: usize) -> usize
where Self: Sized,

Adds val into self, returning the new value.

Implementations on Foreign Types§

source§

impl Action for usize

source§

fn get(&self) -> usize

source§

fn add_mut(&mut self, val: usize) -> usize

source§

fn add_into(self, val: usize) -> usize

Implementors§

source§

impl<'lt, _ErasedPtr> Action for Action_TO<'lt, _ErasedPtr>
where Self: Debug, _ErasedPtr: OwnedPointer<PtrTarget = ()>,