pub struct BaseNode;Expand description
Helper functions for base nodes.
Implementations§
Source§impl BaseNode
impl BaseNode
Sourcepub fn swap_left_right_matchings(node: &NodeRef)
pub fn swap_left_right_matchings(node: &NodeRef)
Sourcepub fn child(node: &NodeRef, index: usize) -> NodeRef
pub fn child(node: &NodeRef, index: usize) -> NodeRef
Gets the child at the given index, asserting it’s a base node.
§Panics
Panics if the index is out of bounds or if the child is not a base node.
Auto Trait Implementations§
impl Freeze for BaseNode
impl RefUnwindSafe for BaseNode
impl Send for BaseNode
impl Sync for BaseNode
impl Unpin for BaseNode
impl UnwindSafe for BaseNode
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