pub struct VectorLeaf<'a> {
pub reference: Node<'a>,
pub text: &'a str,
}
Expand description
The leaves of an AST vector
This is used as an intermediate struct for flattening the tree structure.
Fields§
§reference: Node<'a>
§text: &'a str
Trait Implementations§
Source§impl<'a> Clone for VectorLeaf<'a>
impl<'a> Clone for VectorLeaf<'a>
Source§fn clone(&self) -> VectorLeaf<'a>
fn clone(&self) -> VectorLeaf<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for VectorLeaf<'a>
impl<'a> Debug for VectorLeaf<'a>
Source§impl<'a> From<VectorLeaf<'a>> for Entry<'a>
impl<'a> From<VectorLeaf<'a>> for Entry<'a>
Source§fn from(leaf: VectorLeaf<'a>) -> Self
fn from(leaf: VectorLeaf<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Hash for VectorLeaf<'a>
impl<'a> Hash for VectorLeaf<'a>
Source§impl<'a> PartialEq for VectorLeaf<'a>
impl<'a> PartialEq for VectorLeaf<'a>
impl<'a> Copy for VectorLeaf<'a>
impl<'a> Eq for VectorLeaf<'a>
impl<'a> StructuralPartialEq for VectorLeaf<'a>
Auto Trait Implementations§
impl<'a> Freeze for VectorLeaf<'a>
impl<'a> RefUnwindSafe for VectorLeaf<'a>
impl<'a> Send for VectorLeaf<'a>
impl<'a> Sync for VectorLeaf<'a>
impl<'a> Unpin for VectorLeaf<'a>
impl<'a> UnwindSafe for VectorLeaf<'a>
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