pub struct ReuseList<T> { /* private fields */ }Implementations§
Source§impl<T> ReuseList<T>
impl<T> ReuseList<T>
pub fn new() -> Self
pub fn is_empty(&self) -> bool
pub fn with_capacity(capacity: usize) -> Self
pub fn append(&mut self, item: T) -> usize
pub fn remove(&mut self, index: usize) -> Option<T>
pub fn get(&self, index: usize) -> Option<&T>
pub fn get_mut(&mut self, index: usize) -> Option<&mut T>
pub fn capacity(&self) -> usize
pub fn len(&self) -> usize
pub fn iter(&self) -> impl Iterator<Item = &T>
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut T>
pub fn clear(&mut self)
pub fn optimize(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ReuseList<T>
impl<T> RefUnwindSafe for ReuseList<T>
impl<T> Send for ReuseList<T>
impl<T> Sync for ReuseList<T>
impl<T> Unpin for ReuseList<T>
impl<T> UnsafeUnpin for ReuseList<T>
impl<T> UnwindSafe for ReuseList<T>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more