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
Constant
Fields
Ty
Type
Node
Node
Fields
§
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
Trait Implementations§
Source§impl<'a, 'f> Clone for AbstractDecl<'a, 'f>
impl<'a, 'f> Clone for AbstractDecl<'a, 'f>
Source§fn clone(&self) -> AbstractDecl<'a, 'f>
fn clone(&self) -> AbstractDecl<'a, 'f>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a, 'f> Freeze for AbstractDecl<'a, 'f>
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§
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