pub struct ComponentCallbackArgVec { /* private fields */ }Implementations§
Source§impl ComponentCallbackArgVec
impl ComponentCallbackArgVec
pub fn new() -> ComponentCallbackArgVec
pub fn with_capacity(cap: usize) -> ComponentCallbackArgVec
pub const fn from_const_slice( input: &'static [ComponentCallbackArg], ) -> ComponentCallbackArgVec
pub fn from_vec(input: Vec<ComponentCallbackArg>) -> ComponentCallbackArgVec
pub fn iter(&self) -> Iter<'_, ComponentCallbackArg>
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<&ComponentCallbackArg>
pub fn get(&self, index: usize) -> Option<&ComponentCallbackArg>
Returns a reference to the element at the given index (Rust-only, inline).
Sourcepub fn c_get(&self, index: usize) -> OptionComponentCallbackArgwhere
ComponentCallbackArg: Clone,
pub fn c_get(&self, index: usize) -> OptionComponentCallbackArgwhere
ComponentCallbackArg: 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) -> &[ComponentCallbackArg]
pub fn as_slice(&self) -> &[ComponentCallbackArg]
Returns the vec as a Rust slice (Rust-only, not C-API compatible).
Sourcepub fn as_c_slice(&self) -> ComponentCallbackArgVecSlice
pub fn as_c_slice(&self) -> ComponentCallbackArgVecSlice
Returns a C-compatible slice of the entire Vec.
Sourcepub fn as_c_slice_range(
&self,
start: usize,
end: usize,
) -> ComponentCallbackArgVecSlice
pub fn as_c_slice_range( &self, start: usize, end: usize, ) -> ComponentCallbackArgVecSlice
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 ComponentCallbackArg
pub fn as_ptr(&self) -> *const ComponentCallbackArg
Returns a pointer to the Vec’s data.
Use len() to get the number of elements.
Source§impl ComponentCallbackArgVec
impl ComponentCallbackArgVec
pub fn from_copy_on_write( input: Cow<'static, [ComponentCallbackArg]>, ) -> ComponentCallbackArgVec
Sourcepub fn from_item(item: ComponentCallbackArg) -> ComponentCallbackArgVec
pub fn from_item(item: ComponentCallbackArg) -> ComponentCallbackArgVec
Creates a Vec containing a single element
Sourcepub unsafe fn copy_from_ptr(
ptr: *const ComponentCallbackArg,
len: usize,
) -> ComponentCallbackArgVec
pub unsafe fn copy_from_ptr( ptr: *const ComponentCallbackArg, len: usize, ) -> ComponentCallbackArgVec
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) -> ComponentCallbackArgVec
pub fn clone_self(&self) -> ComponentCallbackArgVec
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<ComponentCallbackArg>
pub fn into_library_owned_vec(self) -> Vec<ComponentCallbackArg>
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 AsRef<[ComponentCallbackArg]> for ComponentCallbackArgVec
impl AsRef<[ComponentCallbackArg]> for ComponentCallbackArgVec
Source§fn as_ref(&self) -> &[ComponentCallbackArg]
fn as_ref(&self) -> &[ComponentCallbackArg]
Source§impl Clone for ComponentCallbackArgVec
impl Clone for ComponentCallbackArgVec
Source§fn clone(&self) -> ComponentCallbackArgVec
fn clone(&self) -> ComponentCallbackArgVec
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 ComponentCallbackArgVec
impl Debug for ComponentCallbackArgVec
Source§impl Default for ComponentCallbackArgVec
impl Default for ComponentCallbackArgVec
Source§fn default() -> ComponentCallbackArgVec
fn default() -> ComponentCallbackArgVec
Source§impl Drop for ComponentCallbackArgVec
impl Drop for ComponentCallbackArgVec
Source§impl From<&'static [ComponentCallbackArg]> for ComponentCallbackArgVec
impl From<&'static [ComponentCallbackArg]> for ComponentCallbackArgVec
Source§fn from(input: &'static [ComponentCallbackArg]) -> ComponentCallbackArgVec
fn from(input: &'static [ComponentCallbackArg]) -> ComponentCallbackArgVec
Source§impl From<Vec<ComponentCallbackArg>> for ComponentCallbackArgVec
impl From<Vec<ComponentCallbackArg>> for ComponentCallbackArgVec
Source§fn from(input: Vec<ComponentCallbackArg>) -> ComponentCallbackArgVec
fn from(input: Vec<ComponentCallbackArg>) -> ComponentCallbackArgVec
Source§impl FromIterator<ComponentCallbackArg> for ComponentCallbackArgVec
impl FromIterator<ComponentCallbackArg> for ComponentCallbackArgVec
Source§fn from_iter<T>(iter: T) -> ComponentCallbackArgVecwhere
T: IntoIterator<Item = ComponentCallbackArg>,
fn from_iter<T>(iter: T) -> ComponentCallbackArgVecwhere
T: IntoIterator<Item = ComponentCallbackArg>,
Source§impl Hash for ComponentCallbackArgVec
impl Hash for ComponentCallbackArgVec
Source§impl Ord for ComponentCallbackArgVec
impl Ord for ComponentCallbackArgVec
Source§fn cmp(&self, rhs: &ComponentCallbackArgVec) -> Ordering
fn cmp(&self, rhs: &ComponentCallbackArgVec) -> 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 ComponentCallbackArgVec
impl PartialEq for ComponentCallbackArgVec
Source§fn eq(&self, rhs: &ComponentCallbackArgVec) -> bool
fn eq(&self, rhs: &ComponentCallbackArgVec) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ComponentCallbackArgVec
impl PartialOrd for ComponentCallbackArgVec
impl Eq for ComponentCallbackArgVec
impl Send for ComponentCallbackArgVec
impl Sync for ComponentCallbackArgVec
Auto Trait Implementations§
impl Freeze for ComponentCallbackArgVec
impl RefUnwindSafe for ComponentCallbackArgVec
impl Unpin for ComponentCallbackArgVec
impl UnsafeUnpin for ComponentCallbackArgVec
impl UnwindSafe for ComponentCallbackArgVec
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