pub struct Located<'a, T> {
pub data: T,
pub span: Span<'a>,
}Expand description
Container for data associated with its source location.
Fields§
§data: TThe actual parsed data.
span: Span<'a>The location in the source text (start of the construct).
Trait Implementations§
Source§impl<'a, T: PartialEq> PartialEq for Located<'a, T>
impl<'a, T: PartialEq> PartialEq for Located<'a, T>
impl<'a, T: PartialEq> StructuralPartialEq for Located<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for Located<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for Located<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Located<'a, T>where
T: Send,
impl<'a, T> Sync for Located<'a, T>where
T: Sync,
impl<'a, T> Unpin for Located<'a, T>where
T: Unpin,
impl<'a, T> UnsafeUnpin for Located<'a, T>where
T: UnsafeUnpin,
impl<'a, T> UnwindSafe for Located<'a, 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