#[non_exhaustive]pub enum CharStringError {
Empty,
TooManyCodePoints,
}
Expand description
An error that relates to a character string
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.
Empty
Empty string in a code point range within a character class, e.g.
[''-'z']
TooManyCodePoints
String in a code point range within a character class that contains
multiple code points, e.g. ['abc'-'z']
Trait Implementations§
Source§impl Clone for CharStringError
impl Clone for CharStringError
Source§fn clone(&self) -> CharStringError
fn clone(&self) -> CharStringError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CharStringError
impl Debug for CharStringError
Source§impl Display for CharStringError
impl Display for CharStringError
Source§impl Error for CharStringError
impl Error for CharStringError
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 CharStringError
impl PartialEq for CharStringError
impl Copy for CharStringError
impl Eq for CharStringError
impl StructuralPartialEq for CharStringError
Auto Trait Implementations§
impl Freeze for CharStringError
impl RefUnwindSafe for CharStringError
impl Send for CharStringError
impl Sync for CharStringError
impl Unpin for CharStringError
impl UnwindSafe for CharStringError
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