pub struct TypedIxVec<TyIx, Ty> { /* private fields */ }Implementations§
Source§impl<TyIx, Ty> TypedIxVec<TyIx, Ty>
impl<TyIx, Ty> TypedIxVec<TyIx, Ty>
pub fn new() -> Self
pub fn from_vec(vek: Vec<Ty>) -> Self
pub fn append(&mut self, other: &mut TypedIxVec<TyIx, Ty>)
pub fn iter(&self) -> Iter<'_, Ty>
pub fn iter_mut(&mut self) -> IterMut<'_, Ty>
pub fn len(&self) -> u32
pub fn push(&mut self, item: Ty)
pub fn resize(&mut self, new_len: u32, value: Ty)
pub fn reserve(&mut self, additional: usize)
pub fn elems(&self) -> &[Ty]
pub fn elems_mut(&mut self) -> &mut [Ty]
pub fn range(&self) -> Range<TyIx>
pub fn remove(&mut self, idx: TyIx) -> Ty
pub fn sort_by<F: FnMut(&Ty, &Ty) -> Ordering>(&mut self, compare: F)
pub fn sort_unstable_by<F: FnMut(&Ty, &Ty) -> Ordering>(&mut self, compare: F)
pub fn clear(&mut self)
Trait Implementations§
Source§impl<TyIx, Ty> Clone for TypedIxVec<TyIx, Ty>where
Ty: Clone,
impl<TyIx, Ty> Clone for TypedIxVec<TyIx, Ty>where
Ty: Clone,
Source§impl<TyIx, Ty: Debug> Debug for TypedIxVec<TyIx, Ty>
impl<TyIx, Ty: Debug> Debug for TypedIxVec<TyIx, Ty>
Source§impl<TyIx, Ty> Index<TyIx> for TypedIxVec<TyIx, Ty>
impl<TyIx, Ty> Index<TyIx> for TypedIxVec<TyIx, Ty>
Auto Trait Implementations§
impl<TyIx, Ty> Freeze for TypedIxVec<TyIx, Ty>
impl<TyIx, Ty> RefUnwindSafe for TypedIxVec<TyIx, Ty>where
TyIx: RefUnwindSafe,
Ty: RefUnwindSafe,
impl<TyIx, Ty> Send for TypedIxVec<TyIx, Ty>
impl<TyIx, Ty> Sync for TypedIxVec<TyIx, Ty>
impl<TyIx, Ty> Unpin for TypedIxVec<TyIx, Ty>
impl<TyIx, Ty> UnwindSafe for TypedIxVec<TyIx, Ty>where
TyIx: UnwindSafe,
Ty: UnwindSafe,
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