pub enum DiscriminantSize {
Size1,
Size2,
Size4,
}
Expand description
Represents the possible sizes in bytes of the discriminant of a variant type in the component model
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for DiscriminantSize
impl Clone for DiscriminantSize
Source§fn clone(&self) -> DiscriminantSize
fn clone(&self) -> DiscriminantSize
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DiscriminantSize
impl Debug for DiscriminantSize
Source§impl From<DiscriminantSize> for u32
impl From<DiscriminantSize> for u32
Source§fn from(size: DiscriminantSize) -> u32
fn from(size: DiscriminantSize) -> u32
Size of the discriminant as a u32
Source§impl From<DiscriminantSize> for usize
impl From<DiscriminantSize> for usize
Source§fn from(size: DiscriminantSize) -> usize
fn from(size: DiscriminantSize) -> usize
Size of the discriminant as a usize
Source§impl Hash for DiscriminantSize
impl Hash for DiscriminantSize
Source§impl PartialEq for DiscriminantSize
impl PartialEq for DiscriminantSize
impl Copy for DiscriminantSize
impl Eq for DiscriminantSize
impl StructuralPartialEq for DiscriminantSize
Auto Trait Implementations§
impl Freeze for DiscriminantSize
impl RefUnwindSafe for DiscriminantSize
impl Send for DiscriminantSize
impl Sync for DiscriminantSize
impl Unpin for DiscriminantSize
impl UnwindSafe for DiscriminantSize
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)