pub struct MatchFailure {
pub failed_at: usize,
pub expected_next: Vec<String>,
pub found: Option<String>,
}Expand description
Match failure: the observed sequence does not satisfy the
expression. failed_at is the index into the observed sequence
(== its length when the body ended too early); expected_next
lists the display forms of the terminals legal at that position;
found is the display form of the offending block (None at
end-of-body).
Fields§
§failed_at: usize§expected_next: Vec<String>§found: Option<String>Trait Implementations§
Source§impl Clone for MatchFailure
impl Clone for MatchFailure
Source§fn clone(&self) -> MatchFailure
fn clone(&self) -> MatchFailure
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 MatchFailure
impl Debug for MatchFailure
impl Eq for MatchFailure
Source§impl PartialEq for MatchFailure
impl PartialEq for MatchFailure
Source§impl Serialize for MatchFailure
impl Serialize for MatchFailure
impl StructuralPartialEq for MatchFailure
Auto Trait Implementations§
impl Freeze for MatchFailure
impl RefUnwindSafe for MatchFailure
impl Send for MatchFailure
impl Sync for MatchFailure
impl Unpin for MatchFailure
impl UnsafeUnpin for MatchFailure
impl UnwindSafe for MatchFailure
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.