Struct spacetimedb_table::layout::SumTypeLayout
source · pub struct SumTypeLayout {
pub layout: Layout,
pub variants: Box<[SumTypeVariantLayout]>,
pub tag_offset: u16,
}Fields§
§layout: LayoutThe layout of a sum value of this sum type.
variants: Box<[SumTypeVariantLayout]>The variants of the sum type.
tag_offset: u16The relative offset of a sum value’s tag for sums of this type.
Implementations§
source§impl SumTypeLayout
impl SumTypeLayout
pub fn offset_of_variant_data(&self, _variant_tag: u8) -> usize
pub fn offset_of_tag(&self) -> usize
Trait Implementations§
source§impl Debug for SumTypeLayout
impl Debug for SumTypeLayout
source§impl From<SumType> for SumTypeLayout
impl From<SumType> for SumTypeLayout
source§impl HasLayout for SumTypeLayout
impl HasLayout for SumTypeLayout
source§impl PartialEq for SumTypeLayout
impl PartialEq for SumTypeLayout
source§fn eq(&self, other: &SumTypeLayout) -> bool
fn eq(&self, other: &SumTypeLayout) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for SumTypeLayout
impl StructuralPartialEq for SumTypeLayout
Auto Trait Implementations§
impl RefUnwindSafe for SumTypeLayout
impl Send for SumTypeLayout
impl Sync for SumTypeLayout
impl Unpin for SumTypeLayout
impl UnwindSafe for SumTypeLayout
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