pub struct ArrayType {
pub elem_ty: Box<AlgebraicType>,
}Expand description
An array type is a homogeneous 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§fn from(original: ArrayType) -> AlgebraicType
fn from(original: ArrayType) -> AlgebraicType
Converts to this type from the input type.
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 PartialOrd for ArrayType
impl PartialOrd for ArrayType
Source§impl SpacetimeType for ArrayType
impl SpacetimeType for ArrayType
Source§fn make_type<S: TypespaceBuilder>(ts: &mut S) -> AlgebraicType
fn make_type<S: TypespaceBuilder>(ts: &mut S) -> AlgebraicType
Returns an
AlgebraicType representing the type for Self in SATS
and in the typing context in typespace. This is used by the
automatic type registration system in Rust modules. Read moreimpl Eq for ArrayType
impl StructuralPartialEq for ArrayType
Auto Trait Implementations§
impl Freeze for ArrayType
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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<'_>, ty: &PsqlType<'_>) -> Result
fn fmt_psql(&self, f: &mut Formatter<'_>, ty: &PsqlType<'_>) -> Result
Formats the value using the postgres SATN(PsqlFormatter { f }, /* PsqlType */) 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.