ringbuf::traits

Trait 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§