pub struct AttributeVec {
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 AttributeVec
impl AttributeVec
pub fn new() -> AttributeVec
pub fn with_capacity(cap: usize) -> Self
pub const fn from_const_slice(input: &'static [AttributeType]) -> Self
pub fn from_vec(input: Vec<AttributeType>) -> Self
pub fn iter(&self) -> Iter<'_, AttributeType>
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<&AttributeType>
pub fn as_slice(&self) -> &[AttributeType]
Source§impl AttributeVec
impl AttributeVec
pub fn from_copy_on_write(input: Cow<'static, [AttributeType]>) -> AttributeVec
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<AttributeType>
pub fn into_library_owned_vec(self) -> Vec<AttributeType>
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<[AttributeType]> for AttributeVec
impl AsRef<[AttributeType]> for AttributeVec
Source§fn as_ref(&self) -> &[AttributeType]
fn as_ref(&self) -> &[AttributeType]
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for AttributeVec
impl Clone for AttributeVec
Source§impl Debug for AttributeVec
impl Debug for AttributeVec
Source§impl Default for AttributeVec
impl Default for AttributeVec
Source§impl Drop for AttributeVec
impl Drop for AttributeVec
Source§impl From<&'static [AttributeType]> for AttributeVec
impl From<&'static [AttributeType]> for AttributeVec
Source§fn from(input: &'static [AttributeType]) -> AttributeVec
fn from(input: &'static [AttributeType]) -> AttributeVec
Converts to this type from the input type.
Source§impl From<Vec<AttributeType>> for AttributeVec
impl From<Vec<AttributeType>> for AttributeVec
Source§fn from(input: Vec<AttributeType>) -> AttributeVec
fn from(input: Vec<AttributeType>) -> AttributeVec
Converts to this type from the input type.
Source§impl FromIterator<AttributeType> for AttributeVec
impl FromIterator<AttributeType> for AttributeVec
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = AttributeType>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = AttributeType>,
Creates a value from an iterator. Read more
Source§impl Hash for AttributeVec
impl Hash for AttributeVec
Source§impl Ord for AttributeVec
impl Ord for AttributeVec
Source§impl PartialEq for AttributeVec
impl PartialEq for AttributeVec
Source§impl PartialOrd for AttributeVec
impl PartialOrd for AttributeVec
impl Eq for AttributeVec
impl Send for AttributeVec
impl Sync for AttributeVec
Auto Trait Implementations§
impl Freeze for AttributeVec
impl RefUnwindSafe for AttributeVec
impl Unpin for AttributeVec
impl UnwindSafe for AttributeVec
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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