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
)