pub struct Located<K> { /* private fields */ }Expand description
Trait Implementations§
impl<K: Eq> Eq for Located<K>
Source§impl<K: ErrorKind> ErrorContext for Located<K>
impl<K: ErrorKind> ErrorContext for Located<K>
Source§impl<K: ErrorKind> ErrorEnvelope for Located<K>
impl<K: ErrorKind> ErrorEnvelope for Located<K>
Source§type Envelope<T: ErrorKind> = Located<T>
type Envelope<T: ErrorKind> = Located<T>
How to map one
ErrorKind to another within this envelope.Source§fn convert<T>(self) -> Self::Envelope<T>
fn convert<T>(self) -> Self::Envelope<T>
Converts the underlying error kind into a compatible error kind.
Source§fn error_kind(&self) -> Self::Kind
fn error_kind(&self) -> Self::Kind
The error kind held within this envelope.
Source§fn with_description<S>(kind: Self::Kind, _description: S) -> Selfwhere
S: StaticString,
fn with_description<S>(kind: Self::Kind, _description: S) -> Selfwhere
S: StaticString,
Constructs a new envelope with the provided
error_kind and description.Source§impl<K: ErrorKind> From<Diagnostic<K>> for Located<K>
Available on crate feature alloc only.
impl<K: ErrorKind> From<Diagnostic<K>> for Located<K>
Available on crate feature
alloc only.Source§fn from(orig: Diagnostic<K>) -> Self
fn from(orig: Diagnostic<K>) -> Self
Converts to this type from the input type.
Source§impl<K: Ord> Ord for Located<K>
impl<K: Ord> Ord for Located<K>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<K: PartialEq> PartialEq<Described<K>> for Located<K>
Available on crate feature alloc only.
impl<K: PartialEq> PartialEq<Described<K>> for Located<K>
Available on crate feature
alloc only.Source§impl<K: PartialEq> PartialEq<Diagnostic<K>> for Located<K>
Available on crate feature alloc only.
impl<K: PartialEq> PartialEq<Diagnostic<K>> for Located<K>
Available on crate feature
alloc only.Source§impl<K: PartialEq> PartialEq<Located<K>> for Described<K>
Available on crate feature alloc only.
impl<K: PartialEq> PartialEq<Located<K>> for Described<K>
Available on crate feature
alloc only.Source§impl<K: PartialEq> PartialEq<Located<K>> for Diagnostic<K>
Available on crate feature alloc only.
impl<K: PartialEq> PartialEq<Located<K>> for Diagnostic<K>
Available on crate feature
alloc only.Source§impl<K: PartialOrd> PartialOrd for Located<K>
impl<K: PartialOrd> PartialOrd for Located<K>
Source§impl<K: PartialOrd> PartialOrd<Described<K>> for Located<K>
Available on crate feature alloc only.
impl<K: PartialOrd> PartialOrd<Described<K>> for Located<K>
Available on crate feature
alloc only.Source§impl<K: PartialOrd> PartialOrd<Diagnostic<K>> for Located<K>
Available on crate feature alloc only.
impl<K: PartialOrd> PartialOrd<Diagnostic<K>> for Located<K>
Available on crate feature
alloc only.Source§impl<K: PartialOrd> PartialOrd<K> for Located<K>
impl<K: PartialOrd> PartialOrd<K> for Located<K>
Source§impl<K: PartialOrd> PartialOrd<Located<K>> for Described<K>
Available on crate feature alloc only.
impl<K: PartialOrd> PartialOrd<Located<K>> for Described<K>
Available on crate feature
alloc only.Source§impl<K: PartialOrd> PartialOrd<Located<K>> for Diagnostic<K>
Available on crate feature alloc only.
impl<K: PartialOrd> PartialOrd<Located<K>> for Diagnostic<K>
Available on crate feature
alloc only.Auto Trait Implementations§
impl<K> Forget for Located<K>
impl<K> Freeze for Located<K>where
K: Freeze,
impl<K> Move for Located<K>
impl<K> RefUnwindSafe for Located<K>where
K: RefUnwindSafe,
impl<K> Send for Located<K>where
K: Send,
impl<K> Sync for Located<K>where
K: Sync,
impl<K> Unpin for Located<K>where
K: Unpin,
impl<K> UnsafeUnpin for Located<K>where
K: UnsafeUnpin,
impl<K> UnwindSafe for Located<K>where
K: 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