pub struct RecExpr<L: Language> {
pub node: L,
pub children: Vec<RecExpr<L>>,
}Expand description
A “term” or “expression” from some given Language L.
Fields§
§node: L§children: Vec<RecExpr<L>>Implementations§
Trait Implementations§
Source§impl<L: PartialEq + Language> PartialEq for RecExpr<L>
impl<L: PartialEq + Language> PartialEq for RecExpr<L>
impl<L: Eq + Language> Eq for RecExpr<L>
impl<L: Language> StructuralPartialEq for RecExpr<L>
Auto Trait Implementations§
impl<L> Freeze for RecExpr<L>where
L: Freeze,
impl<L> RefUnwindSafe for RecExpr<L>where
L: RefUnwindSafe,
impl<L> Send for RecExpr<L>where
L: Send,
impl<L> Sync for RecExpr<L>where
L: Sync,
impl<L> Unpin for RecExpr<L>where
L: Unpin,
impl<L> UnsafeUnpin for RecExpr<L>where
L: UnsafeUnpin,
impl<L> UnwindSafe for RecExpr<L>where
L: 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