pub struct ComponentArgumentVec { /* private fields */ }Implementations§
Source§impl ComponentArgumentVec
impl ComponentArgumentVec
pub fn new() -> ComponentArgumentVec
pub fn with_capacity(cap: usize) -> ComponentArgumentVec
pub const fn from_const_slice( input: &'static [ComponentArgument], ) -> ComponentArgumentVec
pub fn from_vec(input: Vec<ComponentArgument>) -> ComponentArgumentVec
pub fn iter(&self) -> Iter<'_, ComponentArgument>
pub const fn len(&self) -> usize
pub const fn capacity(&self) -> usize
pub const fn is_empty(&self) -> bool
Sourcepub fn get(&self, index: usize) -> Option<&ComponentArgument>
pub fn get(&self, index: usize) -> Option<&ComponentArgument>
Returns a reference to the element at the given index (Rust-only, inline).
Sourcepub fn c_get(&self, index: usize) -> OptionComponentArgumentwhere
ComponentArgument: Clone,
pub fn c_get(&self, index: usize) -> OptionComponentArgumentwhere
ComponentArgument: Clone,
C-API compatible get function. Returns a copy of the element at the given index. Returns None if the index is out of bounds.
Sourcepub fn as_slice(&self) -> &[ComponentArgument]
pub fn as_slice(&self) -> &[ComponentArgument]
Returns the vec as a Rust slice (Rust-only, not C-API compatible).
Sourcepub fn as_c_slice(&self) -> ComponentArgumentVecSlice
pub fn as_c_slice(&self) -> ComponentArgumentVecSlice
Returns a C-compatible slice of the entire Vec.
Sourcepub fn as_c_slice_range(
&self,
start: usize,
end: usize,
) -> ComponentArgumentVecSlice
pub fn as_c_slice_range( &self, start: usize, end: usize, ) -> ComponentArgumentVecSlice
Returns a C-compatible slice of a range within the Vec. If the range is out of bounds, it is clamped to the valid range.
Sourcepub fn as_ptr(&self) -> *const ComponentArgument
pub fn as_ptr(&self) -> *const ComponentArgument
Returns a pointer to the Vec’s data.
Use len() to get the number of elements.
Source§impl ComponentArgumentVec
impl ComponentArgumentVec
pub fn from_copy_on_write( input: Cow<'static, [ComponentArgument]>, ) -> ComponentArgumentVec
Sourcepub fn from_item(item: ComponentArgument) -> ComponentArgumentVec
pub fn from_item(item: ComponentArgument) -> ComponentArgumentVec
Creates a Vec containing a single element
Sourcepub unsafe fn copy_from_ptr(
ptr: *const ComponentArgument,
len: usize,
) -> ComponentArgumentVec
pub unsafe fn copy_from_ptr( ptr: *const ComponentArgument, len: usize, ) -> ComponentArgumentVec
Copies elements from a C array pointer into a new Vec.
§Safety
ptrmust be valid for readinglenelements- The memory must be properly aligned for
$struct_type - The elements are cloned, so
$struct_typemust implementClone
Sourcepub fn clone_self(&self) -> ComponentArgumentVec
pub fn clone_self(&self) -> ComponentArgumentVec
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<ComponentArgument>
pub fn into_library_owned_vec(self) -> Vec<ComponentArgument>
NOTE: CLONES the memory if the memory is external or &’static Moves the memory out if the memory is library-allocated
Source§impl ComponentArgumentVec
impl ComponentArgumentVec
pub fn as_mut_ptr(&mut self) -> *mut ComponentArgument
pub fn sort_by<F>(&mut self, compare: F)
pub fn push(&mut self, value: ComponentArgument)
pub fn insert(&mut self, index: usize, element: ComponentArgument)
pub fn remove(&mut self, index: usize)
pub fn pop(&mut self) -> Option<ComponentArgument>
pub fn iter_mut(&mut self) -> IterMut<'_, ComponentArgument>
pub fn into_iter(self) -> IntoIter<ComponentArgument>
pub fn append(&mut self, other: &mut ComponentArgumentVec)
pub fn reserve(&mut self, additional: usize)
pub fn truncate(&mut self, len: usize)
pub fn retain<F>(&mut self, f: F)
Trait Implementations§
Source§impl AsMut<[ComponentArgument]> for ComponentArgumentVec
impl AsMut<[ComponentArgument]> for ComponentArgumentVec
Source§fn as_mut(&mut self) -> &mut [ComponentArgument]
fn as_mut(&mut self) -> &mut [ComponentArgument]
Source§impl AsRef<[ComponentArgument]> for ComponentArgumentVec
impl AsRef<[ComponentArgument]> for ComponentArgumentVec
Source§fn as_ref(&self) -> &[ComponentArgument]
fn as_ref(&self) -> &[ComponentArgument]
Source§impl Clone for ComponentArgumentVec
impl Clone for ComponentArgumentVec
Source§fn clone(&self) -> ComponentArgumentVec
fn clone(&self) -> ComponentArgumentVec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ComponentArgumentVec
impl Debug for ComponentArgumentVec
Source§impl Default for ComponentArgumentVec
impl Default for ComponentArgumentVec
Source§fn default() -> ComponentArgumentVec
fn default() -> ComponentArgumentVec
Source§impl Drop for ComponentArgumentVec
impl Drop for ComponentArgumentVec
Source§impl Extend<ComponentArgument> for ComponentArgumentVec
impl Extend<ComponentArgument> for ComponentArgumentVec
Source§fn extend<T>(&mut self, iter: T)where
T: IntoIterator<Item = ComponentArgument>,
fn extend<T>(&mut self, iter: T)where
T: IntoIterator<Item = ComponentArgument>,
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)Source§impl From<&'static [ComponentArgument]> for ComponentArgumentVec
impl From<&'static [ComponentArgument]> for ComponentArgumentVec
Source§fn from(input: &'static [ComponentArgument]) -> ComponentArgumentVec
fn from(input: &'static [ComponentArgument]) -> ComponentArgumentVec
Source§impl From<ComponentArgumentVec> for Vec<ComponentArgument>
impl From<ComponentArgumentVec> for Vec<ComponentArgument>
Source§fn from(input: ComponentArgumentVec) -> Vec<ComponentArgument>
fn from(input: ComponentArgumentVec) -> Vec<ComponentArgument>
Source§impl From<Vec<ComponentArgument>> for ComponentArgumentVec
impl From<Vec<ComponentArgument>> for ComponentArgumentVec
Source§fn from(input: Vec<ComponentArgument>) -> ComponentArgumentVec
fn from(input: Vec<ComponentArgument>) -> ComponentArgumentVec
Source§impl FromIterator<ComponentArgument> for ComponentArgumentVec
impl FromIterator<ComponentArgument> for ComponentArgumentVec
Source§fn from_iter<T>(iter: T) -> ComponentArgumentVecwhere
T: IntoIterator<Item = ComponentArgument>,
fn from_iter<T>(iter: T) -> ComponentArgumentVecwhere
T: IntoIterator<Item = ComponentArgument>,
Source§impl Hash for ComponentArgumentVec
impl Hash for ComponentArgumentVec
Source§impl Ord for ComponentArgumentVec
impl Ord for ComponentArgumentVec
Source§fn cmp(&self, rhs: &ComponentArgumentVec) -> Ordering
fn cmp(&self, rhs: &ComponentArgumentVec) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ComponentArgumentVec
impl PartialEq for ComponentArgumentVec
Source§fn eq(&self, rhs: &ComponentArgumentVec) -> bool
fn eq(&self, rhs: &ComponentArgumentVec) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ComponentArgumentVec
impl PartialOrd for ComponentArgumentVec
impl Eq for ComponentArgumentVec
impl Send for ComponentArgumentVec
impl Sync for ComponentArgumentVec
Auto Trait Implementations§
impl Freeze for ComponentArgumentVec
impl RefUnwindSafe for ComponentArgumentVec
impl Unpin for ComponentArgumentVec
impl UnsafeUnpin for ComponentArgumentVec
impl UnwindSafe for ComponentArgumentVec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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>
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>
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