Struct orx_fixed_vec::FixedVec
source · pub struct FixedVec<T> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<T> IntoIterator for FixedVec<T>
impl<T> IntoIterator for FixedVec<T>
source§impl<T> PinnedVec<T> for FixedVec<T>
impl<T> PinnedVec<T> for FixedVec<T>
source§fn capacity(&self) -> usize
fn capacity(&self) -> usize
Returns the total number of elements the vector can hold without reallocating.
source§fn extend_from_slice(&mut self, other: &[T])where
T: Clone,
fn extend_from_slice(&mut self, other: &[T])where T: Clone,
Clones and appends all elements in a slice to the Vec. Read more
source§fn get(&self, index: usize) -> Option<&T>
fn get(&self, index: usize) -> Option<&T>
Returns a reference to an element with the given
index
,
returns None if the index is out of bounds.source§fn get_mut(&mut self, index: usize) -> Option<&mut T>
fn get_mut(&mut self, index: usize) -> Option<&mut T>
Returns a mutable reference to an element with the given
index
,
returns None if the index is out of bounds.source§unsafe fn get_unchecked(&self, index: usize) -> &T
unsafe fn get_unchecked(&self, index: usize) -> &T
Returns a reference to an element or subslice, without doing bounds checking. Read more
source§unsafe fn get_unchecked_mut(&mut self, index: usize) -> &mut T
unsafe fn get_unchecked_mut(&mut self, index: usize) -> &mut T
Returns a mutable reference to an element or subslice, without doing bounds checking. Read more
source§unsafe fn unsafe_insert(&mut self, index: usize, element: T)
unsafe fn unsafe_insert(&mut self, index: usize, element: T)
Inserts an element at position index within the vector, shifting all elements after it to the right. Read more
source§fn len(&self) -> usize
fn len(&self) -> usize
Returns the number of elements in the vector, also referred to as its ‘length’.
source§unsafe fn unsafe_pop(&mut self) -> Option<T>
unsafe fn unsafe_pop(&mut self) -> Option<T>
Removes the last element from a vector and returns it, or None if it is empty. Read more
source§unsafe fn unsafe_remove(&mut self, index: usize) -> T
unsafe fn unsafe_remove(&mut self, index: usize) -> T
Removes and returns the element at position index within the vector, shifting all elements after it to the left. Read more
source§fn partial_eq<S>(&self, other: S) -> boolwhere
S: AsRef<[T]>,
T: PartialEq,
fn partial_eq<S>(&self, other: S) -> boolwhere S: AsRef<[T]>, T: PartialEq,
This method tests for
self
and other
values to be equal, and is used by ==
.source§fn debug(&self, f: &mut Formatter<'_>) -> Resultwhere
T: Debug,
fn debug(&self, f: &mut Formatter<'_>) -> Resultwhere T: Debug,
Formats the value using the given formatter.
source§unsafe fn unsafe_clone(&self) -> Selfwhere
T: Clone,
unsafe fn unsafe_clone(&self) -> Selfwhere T: Clone,
Creates and returns a clone of the vector. Read more
Auto Trait Implementations§
impl<T> RefUnwindSafe for FixedVec<T>where T: RefUnwindSafe,
impl<T> Send for FixedVec<T>where T: Send,
impl<T> Sync for FixedVec<T>where T: Sync,
impl<T> Unpin for FixedVec<T>where T: Unpin,
impl<T> UnwindSafe for FixedVec<T>where T: 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
source§impl<T, V> PinnedVecSimple<T> for Vwhere
T: NotSelfRefVecItem,
V: PinnedVec<T>,
impl<T, V> PinnedVecSimple<T> for Vwhere T: NotSelfRefVecItem, V: PinnedVec<T>,
source§fn insert(&mut self, index: usize, element: T)
fn insert(&mut self, index: usize, element: T)
Inserts an element at position index within the vector, shifting all elements after it to the right. Read more
source§fn remove(&mut self, index: usize) -> T
fn remove(&mut self, index: usize) -> T
Removes and returns the element at position index within the vector, shifting all elements after it to the left. Read more