pub enum ParseError<'a> {
Show 13 variants
UnexpectedEof {
context: &'static str,
},
UnexpectedToken {
expected: &'static str,
found: (&'a str, Position),
},
InvalidKey {
key: &'a str,
position: Position,
inner: &'static str,
},
InvalidXOnlyKey {
key: &'a str,
position: Position,
},
InvalidXOnlyKeyLength {
key: &'a str,
position: Position,
found: usize,
},
UnexpectedTrailingToken {
found: (&'a str, Position),
},
UnknownWrapper {
found: char,
position: Position,
},
MultiColon {
position: Position,
},
InvalidChecksum,
InvalidAbsoluteLocktime {
locktime: u32,
position: Position,
},
NonAscii,
InvalidHex {
position: Position,
},
InvalidHexLength {
expected: usize,
found: usize,
position: Position,
},
}Variants§
UnexpectedEof
UnexpectedToken
InvalidKey
InvalidXOnlyKey
InvalidXOnlyKeyLength
UnexpectedTrailingToken
UnknownWrapper
MultiColon
InvalidChecksum
InvalidAbsoluteLocktime
NonAscii
InvalidHex
InvalidHexLength
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ParseError<'a>
impl<'a> RefUnwindSafe for ParseError<'a>
impl<'a> Send for ParseError<'a>
impl<'a> Sync for ParseError<'a>
impl<'a> Unpin for ParseError<'a>
impl<'a> UnsafeUnpin for ParseError<'a>
impl<'a> UnwindSafe for ParseError<'a>
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