pub enum TextIdError {
Empty,
TooLong {
maximum: usize,
actual: usize,
},
InvalidCharacter {
index: usize,
},
}Expand description
A safe validation failure for a bounded textual identifier.
Variants§
Empty
The identifier is empty.
TooLong
The UTF-8 representation exceeds its byte limit.
InvalidCharacter
The identifier contains a byte outside its permitted alphabet.
Trait Implementations§
Source§impl Clone for TextIdError
impl Clone for TextIdError
impl Copy for TextIdError
Source§impl Debug for TextIdError
impl Debug for TextIdError
Source§impl Display for TextIdError
impl Display for TextIdError
impl Eq for TextIdError
Source§impl Error for TextIdError
impl Error for TextIdError
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 TextIdError
impl PartialEq for TextIdError
impl StructuralPartialEq for TextIdError
Auto Trait Implementations§
impl Freeze for TextIdError
impl RefUnwindSafe for TextIdError
impl Send for TextIdError
impl Sync for TextIdError
impl Unpin for TextIdError
impl UnsafeUnpin for TextIdError
impl UnwindSafe for TextIdError
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