Struct spreadsheet_ods::format::PartWeekOfYearBuilder
source · pub struct PartWeekOfYearBuilder<'vf, T: ValueFormatTrait> { /* private fields */ }Expand description
The number:week-of-year element specifies a week of a year in a date.
The number:week-of-year element is usable within the following element:
- number:date-style 16.27.10.
The number:week-of-year element has the following attribute:
- number:calendar 19.341.
The number:week-of-year element has no child elements.
Implementations§
source§impl<'vf, T: ValueFormatTrait> PartWeekOfYearBuilder<'vf, T>
impl<'vf, T: ValueFormatTrait> PartWeekOfYearBuilder<'vf, T>
sourcepub fn if_then<F>(self, test: bool, build: F) -> Selfwhere
F: Fn(Self) -> Self,
pub fn if_then<F>(self, test: bool, build: F) -> Selfwhere
F: Fn(Self) -> Self,
Only applies the builder if the test is true.
sourcepub fn calendar(self, calendar: FormatCalendarStyle) -> Self
pub fn calendar(self, calendar: FormatCalendarStyle) -> Self
The number:calendar attribute specifies the calendar system used to extract parts of a date.
The attribute value may also be a string value. If this attribute is not specified, the default calendar system for the locale of the data style is used.
Trait Implementations§
Auto Trait Implementations§
impl<'vf, T> RefUnwindSafe for PartWeekOfYearBuilder<'vf, T>where
T: RefUnwindSafe,
impl<'vf, T> Send for PartWeekOfYearBuilder<'vf, T>where
T: Send,
impl<'vf, T> Sync for PartWeekOfYearBuilder<'vf, T>where
T: Sync,
impl<'vf, T> Unpin for PartWeekOfYearBuilder<'vf, T>
impl<'vf, T> !UnwindSafe for PartWeekOfYearBuilder<'vf, T>
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