#[non_exhaustive]pub enum TkStrError {
TooBig(usize),
UnicodeError(Utf8Error),
OutOfBounds(usize),
TooMany(usize),
}
Expand description
The possible errors of this crate.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TooBig(usize)
Cannot create a crate::TokenString
, the length would be bigger than
MAX_LENGTH
.
UnicodeError(Utf8Error)
An error occurred encoding or decoding UTF-8 bytes.
OutOfBounds(usize)
The index is out of bounds.
TooMany(usize)
Too many strings are being concatenated, the crate::Builder
has been
configured for less.
Trait Implementations§
Source§impl Debug for TkStrError
impl Debug for TkStrError
Source§impl Display for TkStrError
impl Display for TkStrError
Source§impl Error for TkStrError
impl Error for TkStrError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for TkStrError
impl PartialEq for TkStrError
impl Eq for TkStrError
impl StructuralPartialEq for TkStrError
Auto Trait Implementations§
impl Freeze for TkStrError
impl RefUnwindSafe for TkStrError
impl Send for TkStrError
impl Sync for TkStrError
impl Unpin for TkStrError
impl UnwindSafe for TkStrError
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