pub enum TypeExpr {
Variable(String),
Reference {
source_name: String,
arguments: Vec<TypeExpr>,
},
Tuple(Vec<TypeExpr>),
Record(Vec<NamedType>),
ExtensibleRecord {
variable: String,
fields: Vec<NamedType>,
},
Function {
input: Box<TypeExpr>,
output: Box<TypeExpr>,
},
Unit,
}Expand description
Morphir type forms that can contribute to Avro schemas.
Variants§
Variable(String)
A type parameter reference.
Reference
A fully qualified type reference with concrete arguments.
Fields
Tuple(Vec<TypeExpr>)
A positional product type.
Record(Vec<NamedType>)
A closed structural record.
ExtensibleRecord
An open structural record.
Function
A function type stored within another type expression.
Unit
The unit type.
Trait Implementations§
impl Eq for TypeExpr
impl StructuralPartialEq for TypeExpr
Auto Trait Implementations§
impl Freeze for TypeExpr
impl RefUnwindSafe for TypeExpr
impl Send for TypeExpr
impl Sync for TypeExpr
impl Unpin for TypeExpr
impl UnsafeUnpin for TypeExpr
impl UnwindSafe for TypeExpr
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.