pub enum StaticParamDecl<'a, 'f> {
Const {
name: Spanned<'f, Ident<'a, 'f>>,
ty: Spanned<'f, TyExpr<'a, 'f>>,
},
Ty {
name: Spanned<'f, Ident<'a, 'f>>,
},
Node {
is_unsafe: bool,
is_function: bool,
name: Spanned<'f, Ident<'a, 'f>>,
params: Vec<Spanned<'f, VariableDecl<'a, 'f>>>,
outputs: Vec<Spanned<'f, VariableDecl<'a, 'f>>>,
},
}
Expand description
Declaration of a static parameter
For the possible values that can be passed as a static argument
when calling a node, see StaticArg
.
Variants
Const
Constant
Ty
Type
Node
Fields
is_unsafe: bool
is_function: bool
params: Vec<Spanned<'f, VariableDecl<'a, 'f>>>
outputs: Vec<Spanned<'f, VariableDecl<'a, 'f>>>
Node
Trait Implementations
Auto Trait Implementations
impl<'a, 'f> RefUnwindSafe for StaticParamDecl<'a, 'f>
impl<'a, 'f> Send for StaticParamDecl<'a, 'f>
impl<'a, 'f> Sync for StaticParamDecl<'a, 'f>
impl<'a, 'f> Unpin for StaticParamDecl<'a, 'f>
impl<'a, 'f> UnwindSafe for StaticParamDecl<'a, 'f>
Blanket Implementations
Mutably borrows from an owned value. Read more