pub trait Rolling<T>{
Show 13 methods
// Required methods
fn new(size: usize) -> Self;
fn push(&mut self, value: T);
fn get(&self, i: usize) -> Option<&T>;
fn last(&self) -> Option<&T>;
fn last_mut(&mut self) -> Option<&mut T>;
fn first(&self) -> Option<&T>;
fn len(&self) -> usize;
fn size(&self) -> usize;
fn raw(&self) -> &Vec<T>;
fn last_removed(&self) -> &Option<T>;
fn count(&self) -> usize;
fn is_empty(&self) -> bool;
fn to_vec(&self) -> Vec<T>;
}
Required Methods§
fn new(size: usize) -> Self
fn push(&mut self, value: T)
fn get(&self, i: usize) -> Option<&T>
fn last(&self) -> Option<&T>
fn last_mut(&mut self) -> Option<&mut T>
fn first(&self) -> Option<&T>
fn len(&self) -> usize
fn size(&self) -> usize
fn raw(&self) -> &Vec<T>
fn last_removed(&self) -> &Option<T>
fn count(&self) -> usize
fn is_empty(&self) -> bool
fn to_vec(&self) -> Vec<T>
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.