Enum ParseAlphabetError

enum ParseAlphabetError

Possible errors when constructing an [Alphabet] from a str.

Variants

InvalidLength

Alphabets must be 64 ASCII bytes

DuplicatedByte(u8)

All bytes must be unique

UnprintableByte(u8)

All bytes must be printable (in the range [32, 126]).

ReservedByte(u8)

= cannot be used

Implementations

impl Debug for ParseAlphabetError

fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result

impl Display for ParseAlphabetError

fn fmt(self: &Self, f: &mut fmt::Formatter<'_>) -> fmt::Result

impl Eq for ParseAlphabetError

impl Error for ParseAlphabetError

impl Freeze for ParseAlphabetError

impl PartialEq for ParseAlphabetError

fn eq(self: &Self, other: &ParseAlphabetError) -> bool

impl RefUnwindSafe for ParseAlphabetError

impl Send for ParseAlphabetError

impl StructuralPartialEq for ParseAlphabetError

impl Sync for ParseAlphabetError

impl Unpin for ParseAlphabetError

impl UnwindSafe for ParseAlphabetError

impl<T> Any for ParseAlphabetError

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for ParseAlphabetError

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for ParseAlphabetError

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for ParseAlphabetError

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToString for ParseAlphabetError

fn to_string(self: &Self) -> String

impl<T, U> Into for ParseAlphabetError

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for ParseAlphabetError

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for ParseAlphabetError

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>