pub struct Located<A> {
pub value: A,
pub from: Location,
pub to: Location,
}
Expand description
Add location information to any type.
Used by located to add from
and to
locations to any captured values
for more precise error messages.
Fields§
§value: A
§from: Location
§to: Location
Trait Implementations§
source§impl<A: PartialEq> PartialEq<Located<A>> for Located<A>
impl<A: PartialEq> PartialEq<Located<A>> for Located<A>
impl<A: Eq> Eq for Located<A>
impl<A> StructuralEq for Located<A>
impl<A> StructuralPartialEq for Located<A>
Auto Trait Implementations§
impl<A> RefUnwindSafe for Located<A>where A: RefUnwindSafe,
impl<A> Send for Located<A>where A: Send,
impl<A> Sync for Located<A>where A: Sync,
impl<A> Unpin for Located<A>where A: Unpin,
impl<A> UnwindSafe for Located<A>where A: 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