pub struct NixFunction {
pub pattern: NixPattern,
pub body: Box<NixExpr>,
}Expand description
A Nix function definition: pattern: body
Fields§
§pattern: NixPatternArgument pattern
body: Box<NixExpr>Function body expression
Implementations§
Trait Implementations§
Source§impl Clone for NixFunction
impl Clone for NixFunction
Source§fn clone(&self) -> NixFunction
fn clone(&self) -> NixFunction
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 moreSource§impl Debug for NixFunction
impl Debug for NixFunction
Source§impl PartialEq for NixFunction
impl PartialEq for NixFunction
impl StructuralPartialEq for NixFunction
Auto Trait Implementations§
impl Freeze for NixFunction
impl RefUnwindSafe for NixFunction
impl Send for NixFunction
impl Sync for NixFunction
impl Unpin for NixFunction
impl UnsafeUnpin for NixFunction
impl UnwindSafe for NixFunction
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