pub struct Recipe { /* private fields */ }
Expand description
Create a recipe from traversing a hierarchy from a node
The recipe is a Vec of NodeEnumOps which describe entirely how to traverse the hierarchy; essentially it is a record of an enumeration of a hierarchy or part of a hierarchy
Implementations§
Source§impl Recipe
impl Recipe
Sourcepub fn add_op(&mut self, op: NodeEnumOp<usize>)
pub fn add_op(&mut self, op: NodeEnumOp<usize>)
Add a new operation to the recipe
Sourcepub fn borrow_ops(&self) -> &Vec<NodeEnumOp<usize>>
pub fn borrow_ops(&self) -> &Vec<NodeEnumOp<usize>>
Borrow the operations that make the recipe
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Recipe
impl RefUnwindSafe for Recipe
impl Send for Recipe
impl Sync for Recipe
impl Unpin for Recipe
impl UnwindSafe for Recipe
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