pub struct Leaf<T> {
pub pos: usize,
pub val: T,
}Expand description
A leaf node: a literal value and its source position.
Fields§
§pos: usizeByte offset of the token in the source.
val: TThe literal value.
Trait Implementations§
impl<T: PartialEq> StructuralPartialEq for Leaf<T>
Auto Trait Implementations§
impl<T> Freeze for Leaf<T>where
T: Freeze,
impl<T> RefUnwindSafe for Leaf<T>where
T: RefUnwindSafe,
impl<T> Send for Leaf<T>where
T: Send,
impl<T> Sync for Leaf<T>where
T: Sync,
impl<T> Unpin for Leaf<T>where
T: Unpin,
impl<T> UnsafeUnpin for Leaf<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Leaf<T>where
T: 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