pub struct FailureLocation {
pub label: String,
pub path: String,
pub line: usize,
pub anchor: AnchorRange,
}Expand description
Where a failure points in the .md — the structural replacement for Java’s
synthetic StackTraceElement injection. line is the anchor’s start line
(all a rendered stack frame can show); anchor is its full offset range, so
a renderer can underline the failing step instead of its whole line.
Fields§
§label: String§path: String§line: usize§anchor: AnchorRangeTrait 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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more