Enum rustre_parser::parser::TyDecl
source[−]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>)
Tuple Fields
0: TyExpr<'a, 'f>
Type alias
Enum(Vec<Spanned<'f, Ident<'a, 'f>>>)
Enumerated type
Struct(Vec<Spanned<'f, ValuedVariableDecl<'a, 'f>>>)
Tuple Fields
0: Vec<Spanned<'f, ValuedVariableDecl<'a, 'f>>>
The fields of the structure
A structured type
Trait Implementations
Auto Trait Implementations
impl<'a, 'f> RefUnwindSafe for TyDecl<'a, 'f>
impl<'a, 'f> UnwindSafe for TyDecl<'a, 'f>
Blanket Implementations
Mutably borrows from an owned value. Read more