pub enum ValidatedAlphabetError {
InvalidLength {
actual: usize,
},
InvalidByte {
index: usize,
byte: u8,
},
PaddingByte {
index: usize,
},
DuplicateByte {
first: usize,
second: usize,
byte: u8,
},
}Expand description
Failure returned while constructing a ValidatedAlphabet.
Variants§
InvalidLength
A byte slice did not contain exactly 64 bytes.
InvalidByte
An alphabet position contains a byte outside visible ASCII.
PaddingByte
An alphabet position contains the reserved padding byte =.
DuplicateByte
Two alphabet positions contain the same byte.
Trait Implementations§
Source§impl Clone for ValidatedAlphabetError
impl Clone for ValidatedAlphabetError
Source§fn clone(&self) -> ValidatedAlphabetError
fn clone(&self) -> ValidatedAlphabetError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ValidatedAlphabetError
Source§impl Debug for ValidatedAlphabetError
impl Debug for ValidatedAlphabetError
Source§impl Display for ValidatedAlphabetError
impl Display for ValidatedAlphabetError
impl Eq for ValidatedAlphabetError
Source§impl PartialEq for ValidatedAlphabetError
impl PartialEq for ValidatedAlphabetError
impl StructuralPartialEq for ValidatedAlphabetError
Auto Trait Implementations§
impl Freeze for ValidatedAlphabetError
impl RefUnwindSafe for ValidatedAlphabetError
impl Send for ValidatedAlphabetError
impl Sync for ValidatedAlphabetError
impl Unpin for ValidatedAlphabetError
impl UnsafeUnpin for ValidatedAlphabetError
impl UnwindSafe for ValidatedAlphabetError
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