#[non_exhaustive]pub struct PosNoMatch<E, F = NoFile> {
pub pos: Position<F>,
pub err: E,
}Expand description
The standard error type for a missing match at specified position.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.pos: Position<F>Error position.
err: EError data
Trait Implementations§
Source§impl<E: Clone, F: Clone> Clone for PosNoMatch<E, F>
impl<E: Clone, F: Clone> Clone for PosNoMatch<E, F>
Source§fn clone(&self) -> PosNoMatch<E, F>
fn clone(&self) -> PosNoMatch<E, F>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<E: Error, F: Debug + Display> Error for PosNoMatch<E, F>
impl<E: Error, F: Debug + Display> Error for PosNoMatch<E, F>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl<E, F> From<Infallible> for PosNoMatch<E, F>
impl<E, F> From<Infallible> for PosNoMatch<E, F>
Source§fn from(i: Infallible) -> Self
fn from(i: Infallible) -> Self
Converts to this type from the input type.
Source§impl<E, F> Posable<F> for PosNoMatch<E, F>
impl<E, F> Posable<F> for PosNoMatch<E, F>
impl<E: Copy, F: Copy> Copy for PosNoMatch<E, F>
impl<E: Eq, F: Eq> Eq for PosNoMatch<E, F>
impl<E, F> StructuralPartialEq for PosNoMatch<E, F>
Auto Trait Implementations§
impl<E, F> Freeze for PosNoMatch<E, F>
impl<E, F> RefUnwindSafe for PosNoMatch<E, F>where
E: RefUnwindSafe,
F: RefUnwindSafe,
impl<E, F> Send for PosNoMatch<E, F>
impl<E, F> Sync for PosNoMatch<E, F>
impl<E, F> Unpin for PosNoMatch<E, F>
impl<E, F> UnwindSafe for PosNoMatch<E, F>where
E: UnwindSafe,
F: 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