pub struct Located<T> { /* private fields */ }Expand description
A typed value and the exact source span from which it was read.
Implementations§
Source§impl<T> Located<T>
impl<T> Located<T>
Sourcepub const fn is_sensitive(&self) -> bool
pub const fn is_sensitive(&self) -> bool
Reports whether this value was protected during native generated parse-back.
Sourcepub const fn span(&self) -> SourceSpan
pub const fn span(&self) -> SourceSpan
Returns the value’s source span.
Sourcepub fn into_value(self) -> T
pub fn into_value(self) -> T
Removes the source wrapper and returns the typed value.
Trait Implementations§
impl<T: Eq> Eq for Located<T>
impl<T: PartialEq> StructuralPartialEq for Located<T>
Auto Trait Implementations§
impl<T> Freeze for Located<T>where
T: Freeze,
impl<T> RefUnwindSafe for Located<T>where
T: RefUnwindSafe,
impl<T> Send for Located<T>where
T: Send,
impl<T> Sync for Located<T>where
T: Sync,
impl<T> Unpin for Located<T>where
T: Unpin,
impl<T> UnsafeUnpin for Located<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Located<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