pub enum DeclBody {
Type {
name: String,
params: Vec<Param>,
ty: TypeAst,
tail: Option<Tail>,
},
Const {
name: String,
ty: Option<TypeAst>,
expr: Rc<Expr>,
},
Func {
name: String,
params: Vec<Param>,
ret: Option<TypeAst>,
body: Rc<Expr>,
},
Output {
name: String,
ty: TypeAst,
expr: Rc<Expr>,
},
Input {
name: String,
ty: TypeAst,
fallback: Option<Rc<Expr>>,
},
Diagnostic {
name: String,
params: Vec<Param>,
severity: String,
template: Vec<TPart>,
},
Dimension {
name: String,
terms: Option<Vec<(String, i32)>>,
},
Unit {
name: String,
dim: Option<String>,
factor: Option<Rc<Expr>>,
base: Option<String>,
},
Import {
from: String,
names: Option<Vec<ImportItem>>,
ns: Option<String>,
},
ReExport {
from: String,
names: Vec<ImportItem>,
},
}Variants§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DeclBody
impl !Send for DeclBody
impl !Sync for DeclBody
impl !UnwindSafe for DeclBody
impl Freeze for DeclBody
impl Unpin for DeclBody
impl UnsafeUnpin for DeclBody
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