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
source§fn eq(&self, other: &DiscriminantSize) -> bool
fn eq(&self, other: &DiscriminantSize) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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