pub struct DynamicSelectorVec {
pub run_destructor: bool,
/* private fields */
}Fields§
§run_destructor: boolWhether to run the destructor on drop (prevents double-free when cloned to C)
Implementations§
Source§impl DynamicSelectorVec
impl DynamicSelectorVec
pub fn new() -> DynamicSelectorVec
pub fn with_capacity(cap: usize) -> Self
pub const fn from_const_slice(input: &'static [DynamicSelector]) -> Self
pub fn from_vec(input: Vec<DynamicSelector>) -> Self
pub fn iter(&self) -> Iter<'_, DynamicSelector>
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<&DynamicSelector>
pub fn as_slice(&self) -> &[DynamicSelector]
Source§impl DynamicSelectorVec
impl DynamicSelectorVec
pub fn from_copy_on_write( input: Cow<'static, [DynamicSelector]>, ) -> DynamicSelectorVec
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<DynamicSelector>
pub fn into_library_owned_vec(self) -> Vec<DynamicSelector>
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<[DynamicSelector]> for DynamicSelectorVec
impl AsRef<[DynamicSelector]> for DynamicSelectorVec
Source§fn as_ref(&self) -> &[DynamicSelector]
fn as_ref(&self) -> &[DynamicSelector]
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for DynamicSelectorVec
impl Clone for DynamicSelectorVec
Source§impl Debug for DynamicSelectorVec
impl Debug for DynamicSelectorVec
Source§impl Default for DynamicSelectorVec
impl Default for DynamicSelectorVec
Source§impl Drop for DynamicSelectorVec
impl Drop for DynamicSelectorVec
Source§impl From<&'static [DynamicSelector]> for DynamicSelectorVec
impl From<&'static [DynamicSelector]> for DynamicSelectorVec
Source§fn from(input: &'static [DynamicSelector]) -> DynamicSelectorVec
fn from(input: &'static [DynamicSelector]) -> DynamicSelectorVec
Converts to this type from the input type.
Source§impl From<Vec<DynamicSelector>> for DynamicSelectorVec
impl From<Vec<DynamicSelector>> for DynamicSelectorVec
Source§fn from(input: Vec<DynamicSelector>) -> DynamicSelectorVec
fn from(input: Vec<DynamicSelector>) -> DynamicSelectorVec
Converts to this type from the input type.
Source§impl FromIterator<DynamicSelector> for DynamicSelectorVec
impl FromIterator<DynamicSelector> for DynamicSelectorVec
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = DynamicSelector>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = DynamicSelector>,
Creates a value from an iterator. Read more
Source§impl PartialEq for DynamicSelectorVec
impl PartialEq for DynamicSelectorVec
impl Send for DynamicSelectorVec
impl Sync for DynamicSelectorVec
Auto Trait Implementations§
impl Freeze for DynamicSelectorVec
impl RefUnwindSafe for DynamicSelectorVec
impl Unpin for DynamicSelectorVec
impl UnwindSafe for DynamicSelectorVec
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