pub struct DhallDecl {
pub name: String,
pub ty: Option<DhallType>,
pub value: DhallExpr,
}Expand description
A top-level Dhall declaration (inside a let chain or file).
Fields§
§name: StringBound name
ty: Option<DhallType>Optional type annotation
value: DhallExprValue expression
Implementations§
Trait Implementations§
impl StructuralPartialEq for DhallDecl
Auto Trait Implementations§
impl Freeze for DhallDecl
impl RefUnwindSafe for DhallDecl
impl Send for DhallDecl
impl Sync for DhallDecl
impl Unpin for DhallDecl
impl UnsafeUnpin for DhallDecl
impl UnwindSafe for DhallDecl
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