pub struct DhallFile {
pub imports: Vec<(String, DhallImport)>,
pub declarations: Vec<DhallDecl>,
pub expression: DhallExpr,
}Expand description
A complete Dhall file.
Dhall files are structured as:
let import1 = ./lib.dhall
let decl1 : T = expr1
let decl2 = expr2
in finalExpressionFields§
§imports: Vec<(String, DhallImport)>Import declarations at the top level
declarations: Vec<DhallDecl>Local declarations (let-bindings)
expression: DhallExprThe final expression the file evaluates to
Implementations§
Trait Implementations§
impl StructuralPartialEq for DhallFile
Auto Trait Implementations§
impl Freeze for DhallFile
impl RefUnwindSafe for DhallFile
impl Send for DhallFile
impl Sync for DhallFile
impl Unpin for DhallFile
impl UnsafeUnpin for DhallFile
impl UnwindSafe for DhallFile
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