#[non_exhaustive]pub enum Oneof<const LEN: usize, _0 = (), _1 = (), _2 = (), _3 = (), _4 = (), _5 = (), _6 = (), _7 = (), _8 = (), _9 = (), _10 = (), _11 = ()> {
_0(_0),
_1(_1),
_2(_2),
_3(_3),
_4(_4),
_5(_5),
_6(_6),
_7(_7),
_8(_8),
_9(_9),
_10(_10),
_11(_11),
}Expand description
A generic, parameterized enum for expressing structured alternatives.
Variants are expected to be contiguous, meaning () (unit types)
should only appear at the end.
The first variant (A) is considered the default,
implementing Default when A: Default.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
_0(_0)
The 1st variant.
_1(_1)
The 2nd variant.
_2(_2)
The 3rd variant.
_3(_3)
The 4th variant.
_4(_4)
The 5th variant.
_5(_5)
The 6th variant.
_6(_6)
The 7th variant.
_7(_7)
The 8th variant.
_8(_8)
The 9th variant.
_9(_9)
The 10th variant.
_10(_10)
The 11th variant.
_11(_11)
The 12th variant.
Implementations§
Source§impl<const LEN: usize, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11> Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>
§Structural methods.
impl<const LEN: usize, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11> Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>
§Structural methods.
Sourcepub const MAX_ARITY: usize = 12usize
pub const MAX_ARITY: usize = 12usize
The maximum number of generic type parameters in this enum.
Sourcepub const fn variant_index(&self) -> usize
pub const fn variant_index(&self) -> usize
Returns the current variant index (0-based).
Sourcepub const fn is_variant_index(&self, index: usize) -> bool
pub const fn is_variant_index(&self, index: usize) -> bool
Checks whether the current variant is at index (0-based).
Sourcepub const fn variant_name(&self) -> &'static str ⓘ
pub const fn variant_name(&self) -> &'static str ⓘ
Returns the current variant name.
Sourcepub const fn is_variant_name(&self, name: &str) -> bool
pub const fn is_variant_name(&self, name: &str) -> bool
Checks whether the current variant has the given name.
Source§impl<const LEN: usize, _0: 'static, _1: 'static, _2: 'static, _3: 'static, _4: 'static, _5: 'static, _6: 'static, _7: 'static, _8: 'static, _9: 'static, _10: 'static, _11: 'static> Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>
impl<const LEN: usize, _0: 'static, _1: 'static, _2: 'static, _3: 'static, _4: 'static, _5: 'static, _6: 'static, _7: 'static, _8: 'static, _9: 'static, _10: 'static, _11: 'static> Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>
Source§impl<const LEN: usize, _0: Clone, _1: Clone, _2: Clone, _3: Clone, _4: Clone, _5: Clone, _6: Clone, _7: Clone, _8: Clone, _9: Clone, _10: Clone, _11: Clone> Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>
§Conversion methods.
impl<const LEN: usize, _0: Clone, _1: Clone, _2: Clone, _3: Clone, _4: Clone, _5: Clone, _6: Clone, _7: Clone, _8: Clone, _9: Clone, _10: Clone, _11: Clone> Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>
§Conversion methods.
Sourcepub fn into_tuple_options(
self,
) -> (Option<_0>, Option<_1>, Option<_2>, Option<_3>, Option<_4>, Option<_5>, Option<_6>, Option<_7>, Option<_8>, Option<_9>, Option<_10>, Option<_11>) ⓘ
pub fn into_tuple_options( self, ) -> (Option<_0>, Option<_1>, Option<_2>, Option<_3>, Option<_4>, Option<_5>, Option<_6>, Option<_7>, Option<_8>, Option<_9>, Option<_10>, Option<_11>) ⓘ
Returns a tuple with Some(value) for the active variant and None elsewhere.
Sourcepub fn into_tuple_defaults(
self,
) -> (_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11) ⓘ
pub fn into_tuple_defaults( self, ) -> (_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11) ⓘ
Returns a tuple with the active variant’s inner value in its corresponding position
and Default::default() for all others.
Source§impl<const LEN: usize, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11> Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>
impl<const LEN: usize, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11> Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>
Source§impl<const LEN: usize, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11> Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>
§Variant-specific methods.
impl<const LEN: usize, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11> Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>
§Variant-specific methods.
Sourcepub fn as_ref_0(&self) -> Option<&_0> ⓘ
pub fn as_ref_0(&self) -> Option<&_0> ⓘ
Returns a reference to the inner value in variant _0, if present.
Sourcepub fn as_mut_0(&mut self) -> Option<&mut _0> ⓘ
pub fn as_mut_0(&mut self) -> Option<&mut _0> ⓘ
Returns a reference to the inner value in variant_0, if present.
Sourcepub fn as_ref_1(&self) -> Option<&_1> ⓘ
pub fn as_ref_1(&self) -> Option<&_1> ⓘ
Returns a reference to the inner value in variant _1, if present.
Sourcepub fn as_mut_1(&mut self) -> Option<&mut _1> ⓘ
pub fn as_mut_1(&mut self) -> Option<&mut _1> ⓘ
Returns a reference to the inner value in variant_1, if present.
Sourcepub fn as_ref_2(&self) -> Option<&_2> ⓘ
pub fn as_ref_2(&self) -> Option<&_2> ⓘ
Returns a reference to the inner value in variant _2, if present.
Sourcepub fn as_mut_2(&mut self) -> Option<&mut _2> ⓘ
pub fn as_mut_2(&mut self) -> Option<&mut _2> ⓘ
Returns a reference to the inner value in variant_2, if present.
Sourcepub fn as_ref_3(&self) -> Option<&_3> ⓘ
pub fn as_ref_3(&self) -> Option<&_3> ⓘ
Returns a reference to the inner value in variant _3, if present.
Sourcepub fn as_mut_3(&mut self) -> Option<&mut _3> ⓘ
pub fn as_mut_3(&mut self) -> Option<&mut _3> ⓘ
Returns a reference to the inner value in variant_3, if present.
Sourcepub fn as_ref_4(&self) -> Option<&_4> ⓘ
pub fn as_ref_4(&self) -> Option<&_4> ⓘ
Returns a reference to the inner value in variant _4, if present.
Sourcepub fn as_mut_4(&mut self) -> Option<&mut _4> ⓘ
pub fn as_mut_4(&mut self) -> Option<&mut _4> ⓘ
Returns a reference to the inner value in variant_4, if present.
Sourcepub fn as_ref_5(&self) -> Option<&_5> ⓘ
pub fn as_ref_5(&self) -> Option<&_5> ⓘ
Returns a reference to the inner value in variant _5, if present.
Sourcepub fn as_mut_5(&mut self) -> Option<&mut _5> ⓘ
pub fn as_mut_5(&mut self) -> Option<&mut _5> ⓘ
Returns a reference to the inner value in variant_5, if present.
Sourcepub fn as_ref_6(&self) -> Option<&_6> ⓘ
pub fn as_ref_6(&self) -> Option<&_6> ⓘ
Returns a reference to the inner value in variant _6, if present.
Sourcepub fn as_mut_6(&mut self) -> Option<&mut _6> ⓘ
pub fn as_mut_6(&mut self) -> Option<&mut _6> ⓘ
Returns a reference to the inner value in variant_6, if present.
Sourcepub fn as_ref_7(&self) -> Option<&_7> ⓘ
pub fn as_ref_7(&self) -> Option<&_7> ⓘ
Returns a reference to the inner value in variant _7, if present.
Sourcepub fn as_mut_7(&mut self) -> Option<&mut _7> ⓘ
pub fn as_mut_7(&mut self) -> Option<&mut _7> ⓘ
Returns a reference to the inner value in variant_7, if present.
Sourcepub fn as_ref_8(&self) -> Option<&_8> ⓘ
pub fn as_ref_8(&self) -> Option<&_8> ⓘ
Returns a reference to the inner value in variant _8, if present.
Sourcepub fn as_mut_8(&mut self) -> Option<&mut _8> ⓘ
pub fn as_mut_8(&mut self) -> Option<&mut _8> ⓘ
Returns a reference to the inner value in variant_8, if present.
Sourcepub fn as_ref_9(&self) -> Option<&_9> ⓘ
pub fn as_ref_9(&self) -> Option<&_9> ⓘ
Returns a reference to the inner value in variant _9, if present.
Sourcepub fn as_mut_9(&mut self) -> Option<&mut _9> ⓘ
pub fn as_mut_9(&mut self) -> Option<&mut _9> ⓘ
Returns a reference to the inner value in variant_9, if present.
Sourcepub fn as_ref_10(&self) -> Option<&_10> ⓘ
pub fn as_ref_10(&self) -> Option<&_10> ⓘ
Returns a reference to the inner value in variant _10, if present.
Sourcepub fn as_mut_10(&mut self) -> Option<&mut _10> ⓘ
pub fn as_mut_10(&mut self) -> Option<&mut _10> ⓘ
Returns a reference to the inner value in variant_10, if present.
Sourcepub fn as_ref_11(&self) -> Option<&_11> ⓘ
pub fn as_ref_11(&self) -> Option<&_11> ⓘ
Returns a reference to the inner value in variant _11, if present.
Sourcepub fn as_mut_11(&mut self) -> Option<&mut _11> ⓘ
pub fn as_mut_11(&mut self) -> Option<&mut _11> ⓘ
Returns a reference to the inner value in variant_11, if present.
Sourcepub fn map_0<NEW>(
self,
f: impl FnOnce(_0) -> NEW,
) -> Oneof<LEN, NEW, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>
pub fn map_0<NEW>( self, f: impl FnOnce(_0) -> NEW, ) -> Oneof<LEN, NEW, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>
Transforms the inner value in variant_0 using f, leaving other variants unchanged.
Sourcepub fn map_1<NEW>(
self,
f: impl FnOnce(_1) -> NEW,
) -> Oneof<LEN, _0, NEW, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>
pub fn map_1<NEW>( self, f: impl FnOnce(_1) -> NEW, ) -> Oneof<LEN, _0, NEW, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>
Transforms the inner value in variant_1 using f, leaving other variants unchanged.
Sourcepub fn map_2<NEW>(
self,
f: impl FnOnce(_2) -> NEW,
) -> Oneof<LEN, _0, _1, NEW, _3, _4, _5, _6, _7, _8, _9, _10, _11>
pub fn map_2<NEW>( self, f: impl FnOnce(_2) -> NEW, ) -> Oneof<LEN, _0, _1, NEW, _3, _4, _5, _6, _7, _8, _9, _10, _11>
Transforms the inner value in variant_2 using f, leaving other variants unchanged.
Sourcepub fn map_3<NEW>(
self,
f: impl FnOnce(_3) -> NEW,
) -> Oneof<LEN, _0, _1, _2, NEW, _4, _5, _6, _7, _8, _9, _10, _11>
pub fn map_3<NEW>( self, f: impl FnOnce(_3) -> NEW, ) -> Oneof<LEN, _0, _1, _2, NEW, _4, _5, _6, _7, _8, _9, _10, _11>
Transforms the inner value in variant_3 using f, leaving other variants unchanged.
Sourcepub fn map_4<NEW>(
self,
f: impl FnOnce(_4) -> NEW,
) -> Oneof<LEN, _0, _1, _2, _3, NEW, _5, _6, _7, _8, _9, _10, _11>
pub fn map_4<NEW>( self, f: impl FnOnce(_4) -> NEW, ) -> Oneof<LEN, _0, _1, _2, _3, NEW, _5, _6, _7, _8, _9, _10, _11>
Transforms the inner value in variant_4 using f, leaving other variants unchanged.
Sourcepub fn map_5<NEW>(
self,
f: impl FnOnce(_5) -> NEW,
) -> Oneof<LEN, _0, _1, _2, _3, _4, NEW, _6, _7, _8, _9, _10, _11>
pub fn map_5<NEW>( self, f: impl FnOnce(_5) -> NEW, ) -> Oneof<LEN, _0, _1, _2, _3, _4, NEW, _6, _7, _8, _9, _10, _11>
Transforms the inner value in variant_5 using f, leaving other variants unchanged.
Sourcepub fn map_6<NEW>(
self,
f: impl FnOnce(_6) -> NEW,
) -> Oneof<LEN, _0, _1, _2, _3, _4, _5, NEW, _7, _8, _9, _10, _11>
pub fn map_6<NEW>( self, f: impl FnOnce(_6) -> NEW, ) -> Oneof<LEN, _0, _1, _2, _3, _4, _5, NEW, _7, _8, _9, _10, _11>
Transforms the inner value in variant_6 using f, leaving other variants unchanged.
Sourcepub fn map_7<NEW>(
self,
f: impl FnOnce(_7) -> NEW,
) -> Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, NEW, _8, _9, _10, _11>
pub fn map_7<NEW>( self, f: impl FnOnce(_7) -> NEW, ) -> Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, NEW, _8, _9, _10, _11>
Transforms the inner value in variant_7 using f, leaving other variants unchanged.
Sourcepub fn map_8<NEW>(
self,
f: impl FnOnce(_8) -> NEW,
) -> Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, NEW, _9, _10, _11>
pub fn map_8<NEW>( self, f: impl FnOnce(_8) -> NEW, ) -> Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, NEW, _9, _10, _11>
Transforms the inner value in variant_8 using f, leaving other variants unchanged.
Sourcepub fn map_9<NEW>(
self,
f: impl FnOnce(_9) -> NEW,
) -> Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, _8, NEW, _10, _11>
pub fn map_9<NEW>( self, f: impl FnOnce(_9) -> NEW, ) -> Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, _8, NEW, _10, _11>
Transforms the inner value in variant_9 using f, leaving other variants unchanged.
Trait Implementations§
Source§impl<const LEN: usize, _0: Clone, _1: Clone, _2: Clone, _3: Clone, _4: Clone, _5: Clone, _6: Clone, _7: Clone, _8: Clone, _9: Clone, _10: Clone, _11: Clone> Clone for Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>
impl<const LEN: usize, _0: Clone, _1: Clone, _2: Clone, _3: Clone, _4: Clone, _5: Clone, _6: Clone, _7: Clone, _8: Clone, _9: Clone, _10: Clone, _11: Clone> Clone for Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>
Source§impl<const LEN: usize, _0: ConstDefault, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11> ConstDefault for Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>
impl<const LEN: usize, _0: ConstDefault, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11> ConstDefault for Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>
Source§impl<const LEN: usize, _0: Debug, _1: Debug, _2: Debug, _3: Debug, _4: Debug, _5: Debug, _6: Debug, _7: Debug, _8: Debug, _9: Debug, _10: Debug, _11: Debug> Debug for Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>
impl<const LEN: usize, _0: Debug, _1: Debug, _2: Debug, _3: Debug, _4: Debug, _5: Debug, _6: Debug, _7: Debug, _8: Debug, _9: Debug, _10: Debug, _11: Debug> Debug for Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>
Source§impl<const LEN: usize, _0: Default, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11> Default for Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>
impl<const LEN: usize, _0: Default, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11> Default for Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>
Source§impl<const LEN: usize, _0: Hash, _1: Hash, _2: Hash, _3: Hash, _4: Hash, _5: Hash, _6: Hash, _7: Hash, _8: Hash, _9: Hash, _10: Hash, _11: Hash> Hash for Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>
impl<const LEN: usize, _0: Hash, _1: Hash, _2: Hash, _3: Hash, _4: Hash, _5: Hash, _6: Hash, _7: Hash, _8: Hash, _9: Hash, _10: Hash, _11: Hash> Hash for Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>
Source§impl<const LEN: usize, _0: PartialEq, _1: PartialEq, _2: PartialEq, _3: PartialEq, _4: PartialEq, _5: PartialEq, _6: PartialEq, _7: PartialEq, _8: PartialEq, _9: PartialEq, _10: PartialEq, _11: PartialEq> PartialEq for Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>
impl<const LEN: usize, _0: PartialEq, _1: PartialEq, _2: PartialEq, _3: PartialEq, _4: PartialEq, _5: PartialEq, _6: PartialEq, _7: PartialEq, _8: PartialEq, _9: PartialEq, _10: PartialEq, _11: PartialEq> PartialEq for Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>
impl<const LEN: usize, _0: Copy, _1: Copy, _2: Copy, _3: Copy, _4: Copy, _5: Copy, _6: Copy, _7: Copy, _8: Copy, _9: Copy, _10: Copy, _11: Copy> Copy for Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>
impl<const LEN: usize, _0: Eq, _1: Eq, _2: Eq, _3: Eq, _4: Eq, _5: Eq, _6: Eq, _7: Eq, _8: Eq, _9: Eq, _10: Eq, _11: Eq> Eq for Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>
impl<const LEN: usize, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11> StructuralPartialEq for Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>
Auto Trait Implementations§
impl<const LEN: usize, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11> Freeze for Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>
impl<const LEN: usize, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11> RefUnwindSafe for Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>where
_0: RefUnwindSafe,
_1: RefUnwindSafe,
_2: RefUnwindSafe,
_3: RefUnwindSafe,
_4: RefUnwindSafe,
_5: RefUnwindSafe,
_6: RefUnwindSafe,
_7: RefUnwindSafe,
_8: RefUnwindSafe,
_9: RefUnwindSafe,
_10: RefUnwindSafe,
_11: RefUnwindSafe,
impl<const LEN: usize, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11> Send for Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>
impl<const LEN: usize, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11> Sync for Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>
impl<const LEN: usize, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11> Unpin for Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>
impl<const LEN: usize, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11> UnwindSafe for Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>where
_0: UnwindSafe,
_1: UnwindSafe,
_2: UnwindSafe,
_3: UnwindSafe,
_4: UnwindSafe,
_5: UnwindSafe,
_6: UnwindSafe,
_7: UnwindSafe,
_8: UnwindSafe,
_9: UnwindSafe,
_10: UnwindSafe,
_11: UnwindSafe,
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
Source§impl<T> ByteSized for T
impl<T> ByteSized for T
Source§const BYTE_ALIGN: usize = _
const BYTE_ALIGN: usize = _
Source§fn byte_align(&self) -> usize
fn byte_align(&self) -> usize
Source§fn ptr_size_ratio(&self) -> [usize; 2]
fn ptr_size_ratio(&self) -> [usize; 2]
Source§impl<T, R> Chain<R> for Twhere
T: ?Sized,
impl<T, R> Chain<R> for Twhere
T: ?Sized,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> ExtAny for T
impl<T> ExtAny for T
Source§fn type_hash_with<H: Hasher>(&self, hasher: H) -> u64
fn type_hash_with<H: Hasher>(&self, hasher: H) -> u64
TypeId of Self using a custom hasher.Source§fn as_any_mut(&mut self) -> &mut dyn Anywhere
Self: Sized,
fn as_any_mut(&mut self) -> &mut dyn Anywhere
Self: Sized,
Source§impl<T> ExtMem for Twhere
T: ?Sized,
impl<T> ExtMem for Twhere
T: ?Sized,
Source§const NEEDS_DROP: bool = _
const NEEDS_DROP: bool = _
Source§fn mem_align_of<T>() -> usize
fn mem_align_of<T>() -> usize
Source§fn mem_align_of_val(&self) -> usize
fn mem_align_of_val(&self) -> usize
Source§fn mem_size_of<T>() -> usize
fn mem_size_of<T>() -> usize
Source§fn mem_size_of_val(&self) -> usize
fn mem_size_of_val(&self) -> usize
Source§fn mem_needs_drop(&self) -> bool
fn mem_needs_drop(&self) -> bool
true if dropping values of this type matters. Read moreSource§fn mem_forget(self)where
Self: Sized,
fn mem_forget(self)where
Self: Sized,
self without running its destructor. Read moreSource§fn mem_replace(&mut self, other: Self) -> Selfwhere
Self: Sized,
fn mem_replace(&mut self, other: Self) -> Selfwhere
Self: Sized,
Source§unsafe fn mem_zeroed<T>() -> T
unsafe fn mem_zeroed<T>() -> T
unsafe_layout only.T represented by the all-zero byte-pattern. Read moreSource§unsafe fn mem_transmute_copy<Src, Dst>(src: &Src) -> Dst
unsafe fn mem_transmute_copy<Src, Dst>(src: &Src) -> Dst
unsafe_layout only.T represented by the all-zero byte-pattern. Read moreSource§fn mem_as_bytes(&self) -> &[u8] ⓘ
fn mem_as_bytes(&self) -> &[u8] ⓘ
unsafe_slice only.§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Hook for T
impl<T> Hook for T
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> ⓘ
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> ⓘ
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