pub struct U32Vec { /* private fields */ }Implementations§
Source§impl U32Vec
impl U32Vec
pub fn new() -> U32Vec
pub fn with_capacity(cap: usize) -> Self
pub const fn from_const_slice(input: &'static [u32]) -> Self
pub fn from_vec(input: Vec<u32>) -> Self
pub fn iter(&self) -> Iter<'_, u32>
pub fn ptr_as_usize(&self) -> usize
pub const fn len(&self) -> usize
pub const fn capacity(&self) -> usize
pub const fn is_empty(&self) -> bool
pub fn get(&self, index: usize) -> Option<&u32>
pub fn as_slice(&self) -> &[u32]
Source§impl U32Vec
impl U32Vec
pub fn as_mut_slice_extended<'a>(&mut self) -> &'a mut [u32]
pub fn as_mut_ptr(&mut self) -> *mut u32
pub fn sort_by<F: FnMut(&u32, &u32) -> Ordering>(&mut self, compare: F)
pub fn push(&mut self, value: u32)
pub fn insert(&mut self, index: usize, element: u32)
pub fn remove(&mut self, index: usize)
pub fn pop(&mut self) -> Option<u32>
pub fn iter_mut(&mut self) -> IterMut<'_, u32>
pub fn into_iter(self) -> IntoIter<u32>
pub fn append(&mut self, other: &mut Self)
pub fn reserve(&mut self, additional: usize)
pub fn truncate(&mut self, len: usize)
pub fn retain<F>(&mut self, f: F)
Source§impl U32Vec
impl U32Vec
pub fn from_copy_on_write(input: Cow<'static, [u32]>) -> U32Vec
Sourcepub fn clone_self(&self) -> Self
pub fn clone_self(&self) -> Self
NOTE: CLONES the memory if the memory is external or &’static Moves the memory out if the memory is library-allocated
Sourcepub fn into_library_owned_vec(self) -> Vec<u32>
pub fn into_library_owned_vec(self) -> Vec<u32>
NOTE: CLONES the memory if the memory is external or &’static Moves the memory out if the memory is library-allocated
Trait Implementations§
Source§impl Extend<u32> for U32Vec
impl Extend<u32> for U32Vec
Source§fn extend<T: IntoIterator<Item = u32>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = u32>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<u32> for U32Vec
impl FromIterator<u32> for U32Vec
Source§impl Ord for U32Vec
impl Ord for U32Vec
Source§impl PartialOrd for U32Vec
impl PartialOrd for U32Vec
impl Eq for U32Vec
impl Send for U32Vec
impl Sync for U32Vec
Auto Trait Implementations§
impl Freeze for U32Vec
impl RefUnwindSafe for U32Vec
impl Unpin for U32Vec
impl UnwindSafe for U32Vec
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