Enum prefix_hex::Error
source · [−]pub enum Error {
InvalidPrefix {
c0: char,
c1: char,
},
InvalidHexCharacter {
c: char,
index: usize,
},
InvalidStringLength,
InvalidStringLengthSlice {
expected: usize,
actual: usize,
},
OddLength,
}
Variants
InvalidPrefix
InvalidHexCharacter
InvalidStringLength
InvalidStringLengthSlice
OddLength
Trait Implementations
sourceimpl From<FromHexError> for Error
impl From<FromHexError> for Error
sourcefn from(v: FromHexError) -> Error
fn from(v: FromHexError) -> Error
Converts to this type from the input type.
impl StructuralPartialEq for Error
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more