pub struct WithLocation<T> {
pub(crate) inner: T,
pub(crate) location: LineAndColumn,
}
Fields§
§inner: T
§location: LineAndColumn
Implementations§
Source§impl<T> WithLocation<T>
impl<T> WithLocation<T>
pub fn location(&self) -> &LineAndColumn
Trait Implementations§
Source§impl<T: Debug> Debug for WithLocation<T>
impl<T: Debug> Debug for WithLocation<T>
Source§impl<T: Display> Display for WithLocation<T>
impl<T: Display> Display for WithLocation<T>
Source§impl<T: Located> From<T> for WithLocation<T>
impl<T: Located> From<T> for WithLocation<T>
Source§fn from(inner: T) -> WithLocation<T>
fn from(inner: T) -> WithLocation<T>
Converts to this type from the input type.
Source§impl<T: Hash> Hash for WithLocation<T>
impl<T: Hash> Hash for WithLocation<T>
Source§impl<T> Located for WithLocation<T>
impl<T> Located for WithLocation<T>
fn location(&self) -> LineAndColumn
Source§impl<T: PartialEq> PartialEq for WithLocation<T>
impl<T: PartialEq> PartialEq for WithLocation<T>
impl<T: Eq> Eq for WithLocation<T>
impl<T> StructuralPartialEq for WithLocation<T>
Auto Trait Implementations§
impl<T> Freeze for WithLocation<T>where
T: Freeze,
impl<T> RefUnwindSafe for WithLocation<T>where
T: RefUnwindSafe,
impl<T> Send for WithLocation<T>where
T: Send,
impl<T> Sync for WithLocation<T>where
T: Sync,
impl<T> Unpin for WithLocation<T>where
T: Unpin,
impl<T> UnwindSafe for WithLocation<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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.