pub enum AbstractDecl<'a, 'f> {
Const {
name: Spanned<'f, Ident<'a, 'f>>,
ty: Spanned<'f, TyExpr<'a, 'f>>,
def: Option<Spanned<'f, Expr<'a, 'f>>>,
},
Ty {
name: Spanned<'f, Ident<'a, 'f>>,
value: Spanned<'f, TyDecl<'a, 'f>>,
},
Node {
is_unsafe: bool,
is_function: bool,
name: Spanned<'f, Ident<'a, 'f>>,
static_params: Vec<Spanned<'f, StaticParamDecl<'a, 'f>>>,
params: Vec<Spanned<'f, VariableDecl<'a, 'f>>>,
outputs: Vec<Spanned<'f, VariableDecl<'a, 'f>>>,
},
}
Expand description
Abstract declarations, used in models
Variants
Const
Fields
Constant
Ty
Type
Node
Fields
is_unsafe: bool
Is it unsafe
is_function: bool
Is it a functional node
static_params: Vec<Spanned<'f, StaticParamDecl<'a, 'f>>>
Its static parameters
params: Vec<Spanned<'f, VariableDecl<'a, 'f>>>
Its dynamic parameters
outputs: Vec<Spanned<'f, VariableDecl<'a, 'f>>>
Its outputs
Node
Trait Implementations
Auto Trait Implementations
impl<'a, 'f> RefUnwindSafe for AbstractDecl<'a, 'f>
impl<'a, 'f> Send for AbstractDecl<'a, 'f>
impl<'a, 'f> Sync for AbstractDecl<'a, 'f>
impl<'a, 'f> Unpin for AbstractDecl<'a, 'f>
impl<'a, 'f> UnwindSafe for AbstractDecl<'a, 'f>
Blanket Implementations
Mutably borrows from an owned value. Read more