pub enum TypeSyntax {
Primitive {
name: String,
span: SourceSpan,
},
LiteralString {
value: String,
span: SourceSpan,
},
Ref {
name: Ident,
},
AgentRef {
agents: Vec<Ident>,
span: SourceSpan,
},
Optional {
inner: Box<TypeSyntax>,
span: SourceSpan,
},
Array {
inner: Box<TypeSyntax>,
span: SourceSpan,
},
Map {
inner: Box<TypeSyntax>,
span: SourceSpan,
},
Union {
variants: Vec<TypeSyntax>,
span: SourceSpan,
},
}Variants§
Trait Implementations§
Source§impl Clone for TypeSyntax
impl Clone for TypeSyntax
Source§fn clone(&self) -> TypeSyntax
fn clone(&self) -> TypeSyntax
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypeSyntax
impl Debug for TypeSyntax
impl Eq for TypeSyntax
Source§impl PartialEq for TypeSyntax
impl PartialEq for TypeSyntax
impl StructuralPartialEq for TypeSyntax
Auto Trait Implementations§
impl Freeze for TypeSyntax
impl RefUnwindSafe for TypeSyntax
impl Send for TypeSyntax
impl Sync for TypeSyntax
impl Unpin for TypeSyntax
impl UnsafeUnpin for TypeSyntax
impl UnwindSafe for TypeSyntax
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