#[repr(u8)]pub enum Day {
Sunday,
Monday,
Tuesday,
Wednesday,
Thursday,
Friday,
Saturday,
}
Expand description
Variants§
Sunday
Sunday
Monday
Monday
Tuesday
Tuesday
Wednesday
Wednesday
Thursday
Thursday
Friday
Friday
Saturday
Friday
Implementations§
source§impl Day
impl Day
sourcepub const fn to_textual_repr(self) -> &'static str
pub const fn to_textual_repr(self) -> &'static str
Returns textual representation of cron expression
sourcepub const fn from_bytes(text: &[u8]) -> Option<Self>
pub const fn from_bytes(text: &[u8]) -> Option<Self>
Parses day from the string accordingly to allowed values.
Trait Implementations§
source§impl Ord for Day
impl Ord for Day
source§impl PartialOrd<Day> for Day
impl PartialOrd<Day> for Day
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Day
impl Eq for Day
impl StructuralEq for Day
impl StructuralPartialEq for Day
Auto Trait Implementations§
impl RefUnwindSafe for Day
impl Send for Day
impl Sync for Day
impl Unpin for Day
impl UnwindSafe for Day
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