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<DiscriminantSize> for DiscriminantSize
impl PartialEq<DiscriminantSize> 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 ==
.