Struct swiss_army_knife::VariablySized
source · [−]pub struct VariablySized<T>(_, _);
Expand description
Wrapper for variably sized data.
Implementations
sourceimpl<T> VariablySized<T>
impl<T> VariablySized<T>
sourcepub fn allocate_zeroed(size: usize) -> Self
pub fn allocate_zeroed(size: usize) -> Self
Allocate zeroed.
Trait Implementations
sourceimpl<T: Debug> Debug for VariablySized<T>
impl<T: Debug> Debug for VariablySized<T>
sourceimpl<T> Deref for VariablySized<T>
impl<T> Deref for VariablySized<T>
sourceimpl<T> DerefMut for VariablySized<T>
impl<T> DerefMut for VariablySized<T>
sourceimpl<T> Drop for VariablySized<T>
impl<T> Drop for VariablySized<T>
sourceimpl<T: PartialEq> PartialEq<VariablySized<T>> for VariablySized<T>
impl<T: PartialEq> PartialEq<VariablySized<T>> for VariablySized<T>
sourcefn eq(&self, other: &VariablySized<T>) -> bool
fn eq(&self, other: &VariablySized<T>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &VariablySized<T>) -> bool
fn ne(&self, other: &VariablySized<T>) -> bool
This method tests for !=
.
impl<T: Eq> Eq for VariablySized<T>
impl<T> StructuralEq for VariablySized<T>
impl<T> StructuralPartialEq for VariablySized<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for VariablySized<T> where
T: RefUnwindSafe,
impl<T> !Send for VariablySized<T>
impl<T> !Sync for VariablySized<T>
impl<T> Unpin for VariablySized<T>
impl<T> UnwindSafe for VariablySized<T> where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more