Struct spacetimedb_table::layout::SumTypeVariantLayout
source · pub struct SumTypeVariantLayout {
pub ty: AlgebraicTypeLayout,
pub name: Option<String>,
}Expand description
A mirrior of SumTypeVariant annotated with a Layout.
Fields§
§ty: AlgebraicTypeLayoutThe type of the variant.
name: Option<String>An optional name of the variant.
This allows us to convert back to SumTypeVariant,
which we do when reporting type errors.
Trait Implementations§
source§impl Debug for SumTypeVariantLayout
impl Debug for SumTypeVariantLayout
source§impl PartialEq for SumTypeVariantLayout
impl PartialEq for SumTypeVariantLayout
source§fn eq(&self, other: &SumTypeVariantLayout) -> bool
fn eq(&self, other: &SumTypeVariantLayout) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for SumTypeVariantLayout
impl StructuralPartialEq for SumTypeVariantLayout
Auto Trait Implementations§
impl RefUnwindSafe for SumTypeVariantLayout
impl Send for SumTypeVariantLayout
impl Sync for SumTypeVariantLayout
impl Unpin for SumTypeVariantLayout
impl UnwindSafe for SumTypeVariantLayout
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