Skip to main content

CircularQueueLike

Trait CircularQueueLike 

Source
pub trait CircularQueueLike<T>: DequeLike<T> {
    type Error;

    // Required methods
    fn capacity(&self) -> usize;
    fn at(&self, index: isize) -> Option<&T>;
    fn resize(&mut self, new_capacity: usize) -> Result<(), Self::Error>;
    fn rearrange(&mut self);
}

Required Associated Types§

Required Methods§

Source

fn capacity(&self) -> usize

Source

fn at(&self, index: isize) -> Option<&T>

Source

fn resize(&mut self, new_capacity: usize) -> Result<(), Self::Error>

Source

fn rearrange(&mut self)

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.

Implementors§