pub struct NixFile {
pub header: Vec<String>,
pub expr: NixExpr,
}Expand description
A complete .nix file — a header comment block plus a top-level
expression. Renderers build one of these and call
NixFile::render.
Fields§
§header: Vec<String>Lines emitted at the very top as # … comments. Used for
provenance (“Generated by …”, “DO NOT EDIT”, architecture
pointer, etc.).
expr: NixExprThe top-level expression. For ishou’s renderers this is
almost always a Lambda wrapping an AttrSet.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NixFile
impl RefUnwindSafe for NixFile
impl Send for NixFile
impl Sync for NixFile
impl Unpin for NixFile
impl UnsafeUnpin for NixFile
impl UnwindSafe for NixFile
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