pub enum TyDecl<'a, 'f> {
External,
Alias(TyExpr<'a, 'f>),
Enum(Vec<Spanned<'f, Ident<'a, 'f>>>),
Struct(Vec<Spanned<'f, ValuedVariableDecl<'a, 'f>>>),
}
Expand description
A type declaration
Variants§
External
External type
Alias(TyExpr<'a, 'f>)
Type alias
Enum(Vec<Spanned<'f, Ident<'a, 'f>>>)
Enumerated type
Struct(Vec<Spanned<'f, ValuedVariableDecl<'a, 'f>>>)
A structured type
Tuple Fields
§
0: Vec<Spanned<'f, ValuedVariableDecl<'a, 'f>>>
The fields of the structure
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'f> Freeze for TyDecl<'a, 'f>
impl<'a, 'f> RefUnwindSafe for TyDecl<'a, 'f>
impl<'a, 'f> Send for TyDecl<'a, 'f>
impl<'a, 'f> Sync for TyDecl<'a, 'f>
impl<'a, 'f> Unpin for TyDecl<'a, 'f>
impl<'a, 'f> UnwindSafe for TyDecl<'a, 'f>
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