pub struct FailureLocation {
pub source: Symbol,
pub start: usize,
pub end: usize,
}Expand description
Stable source location attached to a failed outcome.
Fields§
§source: SymbolStable source identity, independent of a host filesystem path.
start: usizeZero-based start byte in the identified source.
end: usizeZero-based exclusive end byte in the identified source.
Trait Implementations§
Source§impl Clone for FailureLocation
impl Clone for FailureLocation
Source§fn clone(&self) -> FailureLocation
fn clone(&self) -> FailureLocation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FailureLocation
impl Debug for FailureLocation
impl Eq for FailureLocation
Source§impl PartialEq for FailureLocation
impl PartialEq for FailureLocation
impl StructuralPartialEq for FailureLocation
Auto Trait Implementations§
impl Freeze for FailureLocation
impl RefUnwindSafe for FailureLocation
impl Send for FailureLocation
impl Sync for FailureLocation
impl Unpin for FailureLocation
impl UnsafeUnpin for FailureLocation
impl UnwindSafe for FailureLocation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.