pub struct Expected<'t, B: Backing> {
pub desc: &'t str,
pub context: ParseableStr<'t, B>,
}Fields§
§desc: &'t str§context: ParseableStr<'t, B>Trait Implementations§
Source§impl<'t, B: Backing> Error for Expected<'t, B>
impl<'t, B: Backing> Error for Expected<'t, B>
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()
impl<'t, B: Backing> StructuralPartialEq for Expected<'t, B>
Auto Trait Implementations§
impl<'t, B> Freeze for Expected<'t, B>
impl<'t, B> RefUnwindSafe for Expected<'t, B>where
B: RefUnwindSafe,
impl<'t, B> Send for Expected<'t, B>where
B: Sync,
impl<'t, B> Sync for Expected<'t, B>where
B: Sync,
impl<'t, B> Unpin for Expected<'t, B>
impl<'t, B> UnwindSafe for Expected<'t, B>where
B: RefUnwindSafe,
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