#[repr(C)]pub struct NumericUnion<T: Copy, N: Copy, B>(NumericUnionImpl<T, N, B>);Expand description
cbindgen:derive-eq=false cbindgen:derive-neq=false
Tuple Fields§
§0: NumericUnionImpl<T, N, B>Implementations§
Source§impl<T: Copy, N: Copy, B> NumericUnion<T, N, B>
impl<T: Copy, N: Copy, B> NumericUnion<T, N, B>
unsafe fn boxed_ptr(&self) -> *mut B
Sourcepub fn unpack_mut(&mut self) -> UnpackedMut<'_, T, N, B>
pub fn unpack_mut(&mut self) -> UnpackedMut<'_, T, N, B>
Returns the unpacked value, mutably.
Trait Implementations§
Source§impl<T: Copy, N: Copy, B> MallocSizeOf for NumericUnion<T, N, B>
impl<T: Copy, N: Copy, B> MallocSizeOf for NumericUnion<T, N, B>
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
Auto Trait Implementations§
impl<T, N, B> Freeze for NumericUnion<T, N, B>
impl<T, N, B> RefUnwindSafe for NumericUnion<T, N, B>
impl<T, N, B> Send for NumericUnion<T, N, B>
impl<T, N, B> Sync for NumericUnion<T, N, B>
impl<T, N, B> Unpin for NumericUnion<T, N, B>
impl<T, N, B> UnsafeUnpin for NumericUnion<T, N, B>where
T: UnsafeUnpin,
N: UnsafeUnpin,
impl<T, N, B> UnwindSafe for NumericUnion<T, N, B>
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 moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert