pub enum Shift<T>where
T: PrimInt,{
Up(T),
Down(T),
}
Expand description
Enum to specify the direction of a shift, up or down with amount (magnitude).
Variants§
Up(T)
Shifts a number/range up by specified amount.
Down(T)
Shifts a number/range down by specified amount.
Auto Trait Implementations§
impl<T> Freeze for Shift<T>where
T: Freeze,
impl<T> RefUnwindSafe for Shift<T>where
T: RefUnwindSafe,
impl<T> Send for Shift<T>where
T: Send,
impl<T> Sync for Shift<T>where
T: Sync,
impl<T> Unpin for Shift<T>where
T: Unpin,
impl<T> UnwindSafe for Shift<T>where
T: UnwindSafe,
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