#[non_exhaustive]pub enum Rounding {
Round,
Floor,
Ceil,
}Expand description
Strategies for rounding time to emoji clock precision (30-minute granularity)
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Round
Round to the nearest emoji clock
- 01:45 - 02:14 : 02:00 🕑
- 02:15 - 02:44 : 02:30 🕝
Floor
Round down to the nearest emoji clock
- 02:00 - 02:29 : 02:00 🕑
- 02:30 - 02:59 : 02:30 🕝
Ceil
Round up to the nearest emoji clock
- 01:31 - 02:00 : 02:00 🕑
- 02:01 - 02:30 : 02:30 🕝
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rounding
impl RefUnwindSafe for Rounding
impl Send for Rounding
impl Sync for Rounding
impl Unpin for Rounding
impl UnwindSafe for Rounding
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