Trait sized_chunks::ring_buffer::HasLength[][src]

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

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

Trait for data structures which have a length.

Required methods

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

Return the length of the data structure.

Loading content...

Provided methods

pub fn is_empty(&self) -> bool[src]

Return whether the data structure is empty.

Loading content...

Implementations on Foreign Types

impl<A> HasLength for VecDeque<A>[src]

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...