Struct bitcoin_internals::error::input_string::CannotParse
source · pub struct CannotParse<'a, T: Display + ?Sized> { /* private fields */ }
Expand description
Displays message saying failed to parse <input> as <what>
.
This is created by display_cannot_parse
method and should be used as
write_err!("{}", self.input.display_cannot_parse("what is parsed"); self.source)
in parse
error Display
imlementation if the error has source. If the error doesn’t
have a source just use regular write!
with same formatting arguments.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T: ?Sized> Freeze for CannotParse<'a, T>
impl<'a, T: ?Sized> RefUnwindSafe for CannotParse<'a, T>where
T: RefUnwindSafe,
impl<'a, T: ?Sized> Send for CannotParse<'a, T>where
T: Sync,
impl<'a, T: ?Sized> Sync for CannotParse<'a, T>where
T: Sync,
impl<'a, T: ?Sized> Unpin for CannotParse<'a, T>
impl<'a, T: ?Sized> UnwindSafe for CannotParse<'a, T>where
T: 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