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