pub enum TimeFormat {
Hour24,
Hour12,
}Expand description
Text representation used to parse or format TimeValue.
Possible values are TimeFormat::Hour24 and TimeFormat::Hour12.
§Examples
use ailloli_ui_core::{TimeFormat, TimeValue};
assert_eq!(TimeValue::new(13, 5).format(TimeFormat::Hour12), "1:05 PM");Variants§
Trait Implementations§
Source§impl Clone for TimeFormat
impl Clone for TimeFormat
Source§fn clone(&self) -> TimeFormat
fn clone(&self) -> TimeFormat
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 TimeFormat
impl Debug for TimeFormat
Source§impl Default for TimeFormat
impl Default for TimeFormat
Source§fn default() -> TimeFormat
fn default() -> TimeFormat
Returns the “default value” for a type. Read more
Source§impl PartialEq for TimeFormat
impl PartialEq for TimeFormat
impl Copy for TimeFormat
impl Eq for TimeFormat
impl StructuralPartialEq for TimeFormat
Auto Trait Implementations§
impl Freeze for TimeFormat
impl RefUnwindSafe for TimeFormat
impl Send for TimeFormat
impl Sync for TimeFormat
impl Unpin for TimeFormat
impl UnwindSafe for TimeFormat
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