Enum spacetimedb_table::layout::VarLenType
source · pub enum VarLenType {
String,
Array(Box<AlgebraicType>),
Map(Box<AlgebraicType>),
}Expand description
BuiltinType variants which require a VarLenRef indirection,
i.e. strings, arrays and maps.
Variants§
String
The string type corresponds to AlgebraicType::String.
Array(Box<AlgebraicType>)
An array type. The whole outer AlgebraicType is stored here.
Storing the whole AlgebraicType here allows us to directly call BSATN ser/de,
and to report type errors.
Map(Box<AlgebraicType>)
A map type. The whole outer AlgebraicType is stored here.
Storing the whole AlgebraicType here allows us to directly call BSATN ser/de,
and to report type errors.
Trait Implementations§
source§impl Debug for VarLenType
impl Debug for VarLenType
source§impl HasLayout for VarLenType
impl HasLayout for VarLenType
source§impl PartialEq for VarLenType
impl PartialEq for VarLenType
source§fn eq(&self, other: &VarLenType) -> bool
fn eq(&self, other: &VarLenType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for VarLenType
impl StructuralPartialEq for VarLenType
Auto Trait Implementations§
impl RefUnwindSafe for VarLenType
impl Send for VarLenType
impl Sync for VarLenType
impl Unpin for VarLenType
impl UnwindSafe for VarLenType
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