[]Trait sized_chunks::ring_buffer::HasLength

pub trait HasLength {
    fn len(&self) -> usize;

    fn is_empty(&self) -> bool { ... }
}

Trait for data structures which have a length.

Required methods

fn len(&self) -> usize

Return the length of the data structure.

Loading content...

Provided methods

fn is_empty(&self) -> bool

Return whether the data structure is empty.

Loading content...

Implementations on Foreign Types

impl<A> HasLength for VecDeque<A>

Loading content...

Implementors

impl<'a, A: 'a, N: ChunkLength<A> + 'a> HasLength for Slice<'a, A, N>[src]

#[must_use]fn len(&self) -> usize[src]

Get the length of the slice.

impl<'a, A: 'a, N: ChunkLength<A> + 'a> HasLength for SliceMut<'a, A, N>[src]

#[must_use]fn len(&self) -> usize[src]

Get the length of the slice.

impl<A, N> HasLength for RingBuffer<A, N> where
    N: ChunkLength<A>, 
[src]

#[must_use]fn len(&self) -> usize[src]

Get the length of the ring buffer.

Loading content...