pub struct WeekNoSet(/* private fields */);Expand description
A bitset of values from -53 through -1 and from 1 through 53. The highest bit is always set so we can guarantee the entire bitset is never 0.
1 53
| |
0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0000000000 (0-63)
0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0000000001 (64-127)
| | |
-1 -53 msbImplementations§
Source§impl WeekNoSet
impl WeekNoSet
Sourcepub const fn get(&self, index: WeekNoSetIndex) -> bool
pub const fn get(&self, index: WeekNoSetIndex) -> bool
Returns true if index is in this set.
Sourcepub const fn set(&mut self, index: WeekNoSetIndex)
pub const fn set(&mut self, index: WeekNoSetIndex)
Inserts index into this set.
Trait Implementations§
impl Copy for WeekNoSet
impl Eq for WeekNoSet
impl StructuralPartialEq for WeekNoSet
Auto Trait Implementations§
impl Freeze for WeekNoSet
impl RefUnwindSafe for WeekNoSet
impl Send for WeekNoSet
impl Sync for WeekNoSet
impl Unpin for WeekNoSet
impl UnsafeUnpin for WeekNoSet
impl UnwindSafe for WeekNoSet
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