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