Struct regalloc::TypedIxVec
source · [−]pub struct TypedIxVec<TyIx, Ty> { /* private fields */ }
Implementations
sourceimpl<TyIx, Ty> TypedIxVec<TyIx, Ty> where
Ty: Clone,
TyIx: Copy + Eq + Ord + Zero + PlusN + Into<u32>,
impl<TyIx, Ty> TypedIxVec<TyIx, Ty> where
Ty: Clone,
TyIx: Copy + Eq + Ord + Zero + PlusN + Into<u32>,
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]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
pub fn elems_mut(&mut self) -> &mut [Ty]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
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
sourceimpl<TyIx, Ty> Clone for TypedIxVec<TyIx, Ty> where
Ty: Clone,
impl<TyIx, Ty> Clone for TypedIxVec<TyIx, Ty> where
Ty: Clone,
sourceimpl<TyIx, Ty: Debug> Debug for TypedIxVec<TyIx, Ty>
impl<TyIx, Ty: Debug> Debug for TypedIxVec<TyIx, Ty>
sourceimpl<TyIx, Ty> Index<TyIx> for TypedIxVec<TyIx, Ty> where
TyIx: Into<u32>,
impl<TyIx, Ty> Index<TyIx> for TypedIxVec<TyIx, Ty> where
TyIx: Into<u32>,
Auto Trait Implementations
impl<TyIx, Ty> RefUnwindSafe for TypedIxVec<TyIx, Ty> where
Ty: RefUnwindSafe,
TyIx: RefUnwindSafe,
impl<TyIx, Ty> Send for TypedIxVec<TyIx, Ty> where
Ty: Send,
TyIx: Send,
impl<TyIx, Ty> Sync for TypedIxVec<TyIx, Ty> where
Ty: Sync,
TyIx: Sync,
impl<TyIx, Ty> Unpin for TypedIxVec<TyIx, Ty> where
Ty: Unpin,
TyIx: Unpin,
impl<TyIx, Ty> UnwindSafe for TypedIxVec<TyIx, Ty> where
Ty: UnwindSafe,
TyIx: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more