Enum icu_datetime::fields::LengthError
source · [−]#[non_exhaustive]
pub enum LengthError {
InvalidLength,
}
Expand description
An error relating to the length of a field within a date pattern.
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.
InvalidLength
The length of the field string within the pattern is invalid, according to
the field type and its supported field patterns in LDML. See FieldLength
.
Trait Implementations
sourceimpl Clone for LengthError
impl Clone for LengthError
sourcefn clone(&self) -> LengthError
fn clone(&self) -> LengthError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for LengthError
impl Debug for LengthError
sourceimpl Display for LengthError
impl Display for LengthError
sourceimpl Error for LengthError
impl Error for LengthError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl PartialEq<LengthError> for LengthError
impl PartialEq<LengthError> for LengthError
impl Copy for LengthError
impl StructuralPartialEq for LengthError
Auto Trait Implementations
impl RefUnwindSafe for LengthError
impl Send for LengthError
impl Sync for LengthError
impl Unpin for LengthError
impl UnwindSafe for LengthError
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