#[non_exhaustive]pub enum SnapDirection {
Exact,
Before,
After,
}Expand description
Where the chosen boundary landed relative to the requested instant.
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.
Exact
The candidate matches the requested instant exactly.
Before
The candidate is before the requested instant.
After
The candidate is after the requested instant — the common case for a real, non-IDR-aligned cue (see the module docs).
Implementations§
Trait Implementations§
Source§impl Clone for SnapDirection
impl Clone for SnapDirection
impl Copy for SnapDirection
Source§impl Debug for SnapDirection
impl Debug for SnapDirection
Source§impl Display for SnapDirection
impl Display for SnapDirection
impl Eq for SnapDirection
Source§impl PartialEq for SnapDirection
impl PartialEq for SnapDirection
impl StructuralPartialEq for SnapDirection
Auto Trait Implementations§
impl Freeze for SnapDirection
impl RefUnwindSafe for SnapDirection
impl Send for SnapDirection
impl Sync for SnapDirection
impl Unpin for SnapDirection
impl UnsafeUnpin for SnapDirection
impl UnwindSafe for SnapDirection
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