#[repr(C)]pub struct OverlayWithEquallySizedVariants {
pub discriminant: OverlayWithEquallySizedVariantsDiscriminant,
pub variant: OverlayWithEquallySizedVariantsVariant,
}
Fields§
§discriminant: OverlayWithEquallySizedVariantsDiscriminant
§variant: OverlayWithEquallySizedVariantsVariant
Implementations§
source§impl OverlayWithEquallySizedVariants
impl OverlayWithEquallySizedVariants
pub fn is_a(&self) -> bool
pub fn as_a(&mut self) -> Option<&mut u64>
pub fn is_b(&self) -> bool
pub fn as_b(&mut self) -> Option<&mut i64>
pub fn is_c(&self) -> bool
pub fn as_c(&mut self) -> Option<&mut OverlayStructVariant>
pub fn is_d(&self) -> bool
pub fn as_d(&mut self) -> Option<&mut u64>
Trait Implementations§
source§impl Clone for OverlayWithEquallySizedVariants
impl Clone for OverlayWithEquallySizedVariants
source§fn clone(&self) -> OverlayWithEquallySizedVariants
fn clone(&self) -> OverlayWithEquallySizedVariants
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 moreimpl Copy for OverlayWithEquallySizedVariants
impl IntoBytes for OverlayWithEquallySizedVariantswhere
OverlayWithEquallySizedVariantsDiscriminant: IntoBytes,
OverlayWithEquallySizedVariantsVariant: IntoBytes,
HasPadding<OverlayWithEquallySizedVariants, { _ }>: ShouldBe<false>,
Auto Trait Implementations§
impl Freeze for OverlayWithEquallySizedVariants
impl RefUnwindSafe for OverlayWithEquallySizedVariants
impl Send for OverlayWithEquallySizedVariants
impl Sync for OverlayWithEquallySizedVariants
impl Unpin for OverlayWithEquallySizedVariants
impl UnwindSafe for OverlayWithEquallySizedVariants
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