Enum rust_icu_sys::UDateFormatStyle
source · #[repr(i32)]pub enum UDateFormatStyle {
UDAT_FULL = 0,
UDAT_LONG = 1,
UDAT_MEDIUM = 2,
UDAT_SHORT = 3,
UDAT_RELATIVE = 128,
UDAT_LONG_RELATIVE = 129,
UDAT_MEDIUM_RELATIVE = 130,
UDAT_SHORT_RELATIVE = 131,
UDAT_NONE = -1,
UDAT_PATTERN = -2,
}
Variants§
UDAT_FULL = 0
UDAT_LONG = 1
UDAT_MEDIUM = 2
UDAT_SHORT = 3
UDAT_RELATIVE = 128
UDAT_LONG_RELATIVE = 129
UDAT_MEDIUM_RELATIVE = 130
UDAT_SHORT_RELATIVE = 131
UDAT_NONE = -1
UDAT_PATTERN = -2
Implementations§
source§impl UDateFormatStyle
impl UDateFormatStyle
pub const UDAT_DEFAULT: UDateFormatStyle = UDateFormatStyle::UDAT_MEDIUM
source§impl UDateFormatStyle
impl UDateFormatStyle
pub const UDAT_FULL_RELATIVE: UDateFormatStyle = UDateFormatStyle::UDAT_RELATIVE
source§impl UDateFormatStyle
impl UDateFormatStyle
pub const UDAT_IGNORE: UDateFormatStyle = UDateFormatStyle::UDAT_PATTERN
Trait Implementations§
source§impl Clone for UDateFormatStyle
impl Clone for UDateFormatStyle
source§fn clone(&self) -> UDateFormatStyle
fn clone(&self) -> UDateFormatStyle
Returns a copy 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 UDateFormatStyle
impl Debug for UDateFormatStyle
source§impl Hash for UDateFormatStyle
impl Hash for UDateFormatStyle
source§impl PartialEq for UDateFormatStyle
impl PartialEq for UDateFormatStyle
source§fn eq(&self, other: &UDateFormatStyle) -> bool
fn eq(&self, other: &UDateFormatStyle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for UDateFormatStyle
impl PartialOrd for UDateFormatStyle
source§fn partial_cmp(&self, other: &UDateFormatStyle) -> Option<Ordering>
fn partial_cmp(&self, other: &UDateFormatStyle) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for UDateFormatStyle
impl Eq for UDateFormatStyle
impl StructuralPartialEq for UDateFormatStyle
Auto Trait Implementations§
impl Freeze for UDateFormatStyle
impl RefUnwindSafe for UDateFormatStyle
impl Send for UDateFormatStyle
impl Sync for UDateFormatStyle
impl Unpin for UDateFormatStyle
impl UnwindSafe for UDateFormatStyle
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