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