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