Enum icu::collections::codepointinvliststringlist::Error
source · [−]pub enum Error {
InvalidCodePointInversionList(CodePointInversionListError),
InvalidStringLength(String),
StringListNotUnique(String),
StringListNotSorted(String, String),
}
Expand description
Custom Errors for CodePointInversionListAndStringList
.
Re-exported as Error
.
Variants
InvalidCodePointInversionList(CodePointInversionListError)
An invalid CodePointInversionList was constructed
InvalidStringLength(String)
A string in the string list had an invalid length
StringListNotUnique(String)
A string in the string list appears more than once
StringListNotSorted(String, String)
Two strings in the string list compare to each other opposite of sorted order
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CodePointInversionListAndStringListError
impl Send for CodePointInversionListAndStringListError
impl Sync for CodePointInversionListAndStringListError
impl Unpin for CodePointInversionListAndStringListError
impl UnwindSafe for CodePointInversionListAndStringListError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Separable for T where
T: Display,
impl<T> Separable for T where
T: Display,
sourcefn separate_by_policy(&self, policy: SeparatorPolicy<'_>) -> String
fn separate_by_policy(&self, policy: SeparatorPolicy<'_>) -> String
Adds separators according to the given SeparatorPolicy
. Read more
sourcefn separate_with_commas(&self) -> String
fn separate_with_commas(&self) -> String
Inserts a comma every three digits from the right. Read more
sourcefn separate_with_spaces(&self) -> String
fn separate_with_spaces(&self) -> String
Inserts a space every three digits from the right. Read more
sourcefn separate_with_dots(&self) -> String
fn separate_with_dots(&self) -> String
Inserts a period every three digits from the right. Read more
sourcefn separate_with_underscores(&self) -> String
fn separate_with_underscores(&self) -> String
Inserts an underscore every three digits from the right. Read more