pub struct DisplayFormats { /* private fields */ }
Implementations§
§impl DisplayFormats
impl DisplayFormats
pub fn new() -> Self
pub fn get_day(&mut self) -> &mut String
pub fn day(self, value: impl Into<String>) -> DisplayFormats
pub fn get_hour(&mut self) -> &mut String
pub fn hour(self, value: impl Into<String>) -> DisplayFormats
pub fn get_minute(&mut self) -> &mut String
pub fn minute(self, value: impl Into<String>) -> DisplayFormats
pub fn get_month(&mut self) -> &mut String
pub fn month(self, value: impl Into<String>) -> DisplayFormats
pub fn get_quarter(&mut self) -> &mut String
pub fn quarter(self, value: impl Into<String>) -> DisplayFormats
pub fn get_week(&mut self) -> &mut String
pub fn week(self, value: impl Into<String>) -> DisplayFormats
pub fn get_year(&mut self) -> &mut String
pub fn year(self, value: impl Into<String>) -> DisplayFormats
Trait Implementations§
source§impl Clone for DisplayFormats
impl Clone for DisplayFormats
source§fn clone(&self) -> DisplayFormats
fn clone(&self) -> DisplayFormats
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 DisplayFormats
impl Debug for DisplayFormats
source§impl Default for DisplayFormats
impl Default for DisplayFormats
source§fn default() -> DisplayFormats
fn default() -> DisplayFormats
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for DisplayFormats
impl<'de> Deserialize<'de> for DisplayFormats
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for DisplayFormats
impl Ord for DisplayFormats
source§fn cmp(&self, other: &DisplayFormats) -> Ordering
fn cmp(&self, other: &DisplayFormats) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for DisplayFormats
impl PartialEq for DisplayFormats
source§impl PartialOrd for DisplayFormats
impl PartialOrd for DisplayFormats
source§impl Serialize for DisplayFormats
impl Serialize for DisplayFormats
impl Eq for DisplayFormats
impl StructuralPartialEq for DisplayFormats
Auto Trait Implementations§
impl Freeze for DisplayFormats
impl RefUnwindSafe for DisplayFormats
impl Send for DisplayFormats
impl Sync for DisplayFormats
impl Unpin for DisplayFormats
impl UnwindSafe for DisplayFormats
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)