abi_stable::sabi_trait::doc_examples::ConstExample_trait

Trait ConstExample

Source
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

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.

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 = ()>,