pub struct WeekdaySet(/* private fields */);Expand description
Bitset representing weekdays.
Implementations§
Source§impl WeekdaySet
impl WeekdaySet
Sourcepub const fn contains(&self, day: IsoWeekday) -> bool
pub const fn contains(&self, day: IsoWeekday) -> bool
Returns whether the set contains the day.
Source§impl WeekdaySet
impl WeekdaySet
Sourcepub const fn new(days: &[IsoWeekday]) -> Self
pub const fn new(days: &[IsoWeekday]) -> Self
Creates a new WeekdaySet using the provided days.
Trait Implementations§
Source§impl Clone for WeekdaySet
impl Clone for WeekdaySet
Source§fn clone(&self) -> WeekdaySet
fn clone(&self) -> WeekdaySet
Returns a duplicate of the value. Read more
1.0.0 · 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 WeekdaySet
impl Debug for WeekdaySet
Source§impl PartialEq for WeekdaySet
impl PartialEq for WeekdaySet
impl Copy for WeekdaySet
impl StructuralPartialEq for WeekdaySet
Auto Trait Implementations§
impl Freeze for WeekdaySet
impl RefUnwindSafe for WeekdaySet
impl Send for WeekdaySet
impl Sync for WeekdaySet
impl Unpin for WeekdaySet
impl UnwindSafe for WeekdaySet
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSendSync for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte