pub struct IndependentDate {
pub variable: DateVariable,
pub date_parts: Vec<DatePart>,
pub delimiter: Delimiter,
pub affixes: Affixes,
pub formatting: Option<Formatting>,
pub display: Option<DisplayMode>,
pub text_case: TextCase,
}Expand description
A date element that fully defines its own output. It is ‘independent’ of any localization.
Fields§
§variable: DateVariable§date_parts: Vec<DatePart>§delimiter: Delimiter§affixes: Affixes§formatting: Option<Formatting>§display: Option<DisplayMode>§text_case: TextCaseTrait Implementations§
Source§impl Clone for IndependentDate
impl Clone for IndependentDate
Source§fn clone(&self) -> IndependentDate
fn clone(&self) -> IndependentDate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IndependentDate
impl Debug for IndependentDate
impl Eq for IndependentDate
Source§impl PartialEq for IndependentDate
impl PartialEq for IndependentDate
Source§fn eq(&self, other: &IndependentDate) -> bool
fn eq(&self, other: &IndependentDate) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IndependentDate
Auto Trait Implementations§
impl Freeze for IndependentDate
impl RefUnwindSafe for IndependentDate
impl Send for IndependentDate
impl Sync for IndependentDate
impl Unpin for IndependentDate
impl UnsafeUnpin for IndependentDate
impl UnwindSafe for IndependentDate
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