pub struct Tracked<T> { /* private fields */ }Expand description
Tracked provides the struct with maybe position tracking.
Implementations§
Source§impl<T> Tracked<T>
impl<T> Tracked<T>
Sourcepub fn span(&self) -> TrackedSpan
pub fn span(&self) -> TrackedSpan
Returns span for the tracked position.
Sourcepub fn new(value: T, span: TrackedSpan) -> Self
pub fn new(value: T, span: TrackedSpan) -> Self
Wraps another value with the same span.
Trait Implementations§
Source§impl<T> AsUndecorated<T> for Tracked<T>
impl<T> AsUndecorated<T> for Tracked<T>
fn as_undecorated(&self) -> &T
impl<T: Eq> Eq for Tracked<T>
impl<T> StructuralPartialEq for Tracked<T>
Auto Trait Implementations§
impl<T> Freeze for Tracked<T>where
T: Freeze,
impl<T> RefUnwindSafe for Tracked<T>where
T: RefUnwindSafe,
impl<T> Send for Tracked<T>where
T: Send,
impl<T> Sync for Tracked<T>where
T: Sync,
impl<T> Unpin for Tracked<T>where
T: Unpin,
impl<T> UnwindSafe for Tracked<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