Struct spacetimedb_sats::array_type::ArrayType
source · pub struct ArrayType {
pub elem_ty: Box<AlgebraicType>,
}
Expand description
An array type is a homegeneous product type of dynamic length.
That is, it is a product type where every element / factor / field is of the same type and where the length is statically unknown.
Fields§
§elem_ty: Box<AlgebraicType>
The base type every element of the array has.
Trait Implementations§
source§impl<'de> Deserialize<'de> for ArrayType
impl<'de> Deserialize<'de> for ArrayType
source§fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
Deserialize this value from the given
deserializer
.source§impl From<ArrayType> for AlgebraicType
impl From<ArrayType> for AlgebraicType
source§impl MetaType for ArrayType
impl MetaType for ArrayType
source§fn meta_type() -> AlgebraicType
fn meta_type() -> AlgebraicType
Returns the type structure of this type as an
AlgebraicType
.source§impl Ord for ArrayType
impl Ord for ArrayType
source§impl PartialEq for ArrayType
impl PartialEq for ArrayType
source§impl PartialOrd for ArrayType
impl PartialOrd for ArrayType
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for ArrayType
impl StructuralPartialEq for ArrayType
Auto Trait Implementations§
impl RefUnwindSafe for ArrayType
impl Send for ArrayType
impl Sync for ArrayType
impl Unpin for ArrayType
impl UnwindSafe for ArrayType
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Satn for T
impl<T> Satn for T
source§fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the SATN data format into the formatter
f
.source§fn fmt_psql(&self, f: &mut Formatter<'_>) -> Result
fn fmt_psql(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the postgres SATN data format into the formatter
f
.source§fn to_satn(&self) -> String
fn to_satn(&self) -> String
Formats the value using the SATN data format into the returned
String
.source§fn to_satn_pretty(&self) -> String
fn to_satn_pretty(&self) -> String
Pretty prints the value using the SATN data format into the returned
String
.