pub struct ObjectList<T: Default + Copy, A: GlobalAlloc + Default> { /* private fields */ }
Implementations§
Source§impl<T: Default + Copy, A: GlobalAlloc + Default> ObjectList<T, A>
impl<T: Default + Copy, A: GlobalAlloc + Default> ObjectList<T, A>
pub fn with_capacity(cap: usize) -> Self
pub fn new() -> Self
pub fn push(&self, data: T)
pub fn exclusive_push(&self, data: T)
pub fn pop(&self) -> Option<T>
pub fn drop_out_all<F>(&self, retain: Option<F>)
pub fn prepend_with(&self, other: &Self)
pub fn count(&self) -> usize
pub fn iter(&self) -> ListIterator<T, A> ⓘ
Auto Trait Implementations§
impl<T, A> !Freeze for ObjectList<T, A>
impl<T, A> RefUnwindSafe for ObjectList<T, A>
impl<T, A> Send for ObjectList<T, A>
impl<T, A> Sync for ObjectList<T, A>
impl<T, A> Unpin for ObjectList<T, A>
impl<T, A> UnwindSafe for ObjectList<T, A>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more