Trait ringbuf::traits::Based

source ·
pub trait Based {
    type Base: ?Sized;

    // Required methods
    fn base(&self) -> &Self::Base;
    fn base_mut(&mut self) -> &mut Self::Base;
}
Expand description

Trait that should be implemented by ring buffer wrappers.

Used for automatically delegating methods.

Required Associated Types§

source

type Base: ?Sized

Type the wrapper based on.

Required Methods§

source

fn base(&self) -> &Self::Base

Reference to base.

source

fn base_mut(&mut self) -> &mut Self::Base

Mutable reference to base.

Implementors§