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> Freeze for CannotParse<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for CannotParse<'a, T>where
T: RefUnwindSafe + ?Sized,
impl<'a, T> Send for CannotParse<'a, T>
impl<'a, T> Sync for CannotParse<'a, T>
impl<'a, T> Unpin for CannotParse<'a, T>where
T: ?Sized,
impl<'a, T> UnwindSafe for CannotParse<'a, T>where
T: RefUnwindSafe + ?Sized,
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