pub struct Def<Rhs = Main> {
pub lhs: Call,
pub rhs: Rhs,
}
Expand description
A definition, such as def map(f): [.[] | f];
.
Fields§
§lhs: Call
left-hand side, i.e. what shall be defined, e.g. map(f)
rhs: Rhs
right-hand side, i.e. what the LHS should be defined as, e.g. [.[] | f]
Trait Implementations§
Source§impl<'de, Rhs> Deserialize<'de> for Def<Rhs>where
Rhs: Deserialize<'de>,
impl<'de, Rhs> Deserialize<'de> for Def<Rhs>where
Rhs: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<Rhs> Freeze for Def<Rhs>where
Rhs: Freeze,
impl<Rhs> RefUnwindSafe for Def<Rhs>where
Rhs: RefUnwindSafe,
impl<Rhs> Send for Def<Rhs>where
Rhs: Send,
impl<Rhs> Sync for Def<Rhs>where
Rhs: Sync,
impl<Rhs> Unpin for Def<Rhs>where
Rhs: Unpin,
impl<Rhs> UnwindSafe for Def<Rhs>where
Rhs: UnwindSafe,
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