pub struct WeekRange { /* private fields */ }Implementations§
Source§impl WeekRange
impl WeekRange
Sourcepub fn new(range: RangeInclusive<WeekNum>, step: u8) -> Option<Self>
pub fn new(range: RangeInclusive<WeekNum>, step: u8) -> Option<Self>
Create a new WeekRange. Return None if the bounds are in the wrong order.
Sourcepub fn into_parts(&self) -> (RangeInclusive<WeekNum>, u8)
pub fn into_parts(&self) -> (RangeInclusive<WeekNum>, u8)
Extract range and step from this object.
Trait Implementations§
impl Eq for WeekRange
impl StructuralPartialEq for WeekRange
Auto Trait Implementations§
impl Freeze for WeekRange
impl RefUnwindSafe for WeekRange
impl Send for WeekRange
impl Sync for WeekRange
impl Unpin for WeekRange
impl UnsafeUnpin for WeekRange
impl UnwindSafe for WeekRange
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