pub struct Annotated<T> {
pub value: T,
pub start: usize,
pub end: usize,
}Expand description
A span annotation: associates a value with its source location.
Fields§
§value: TThe parsed value.
start: usizeStart byte offset in the source.
end: usizeEnd byte offset (exclusive) in the source.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Annotated<T>where
T: Freeze,
impl<T> RefUnwindSafe for Annotated<T>where
T: RefUnwindSafe,
impl<T> Send for Annotated<T>where
T: Send,
impl<T> Sync for Annotated<T>where
T: Sync,
impl<T> Unpin for Annotated<T>where
T: Unpin,
impl<T> UnsafeUnpin for Annotated<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Annotated<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