pub struct WeekInformation(pub WeekInformation);Expand description
A Week calculator, useful to be passed in to week_of_year() on Date and DateTime types
Tuple Fields§
§0: WeekInformationImplementations§
Source§impl WeekInformation
impl WeekInformation
Sourcepub fn create(locale: &Locale) -> Result<Box<WeekInformation>, DataError>
pub fn create(locale: &Locale) -> Result<Box<WeekInformation>, DataError>
Creates a new WeekInformation from locale data using compiled data.
Sourcepub fn first_weekday(&self) -> Weekday
pub fn first_weekday(&self) -> Weekday
Returns the weekday that starts the week for this object’s locale
pub fn is_weekend(&self, day: Weekday) -> bool
pub fn weekend(&self) -> Box<WeekdaySetIterator>
Auto Trait Implementations§
impl Freeze for WeekInformation
impl RefUnwindSafe for WeekInformation
impl Send for WeekInformation
impl Sync for WeekInformation
impl Unpin for WeekInformation
impl UnsafeUnpin for WeekInformation
impl UnwindSafe for WeekInformation
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