pub struct Failure {
pub offset: usize,
pub expected: String,
pub reach: usize,
}Expand description
Where a text stops matching a template, and what was expected there.
Fields§
§offset: usizeThe byte offset in the text where the fault is.
expected: StringWhat the template expected at the offset.
reach: usizeHow far the text matches the template before it fails, which can lie past the fault: of two shapes, the text meant the one it follows furthest.
Implementations§
Trait Implementations§
impl Eq for Failure
impl StructuralPartialEq for Failure
Auto Trait Implementations§
impl Freeze for Failure
impl RefUnwindSafe for Failure
impl Send for Failure
impl Sync for Failure
impl Unpin for Failure
impl UnsafeUnpin for Failure
impl UnwindSafe for Failure
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