pub enum ScrollUnits {
Lines,
Pixels,
Pages,
}Expand description
Scroll delta units.
Variants§
Lines
Delta in logical line units (one notch ~ 1.0).
Pixels
Delta in physical pixels.
Pages
Delta in viewport pages (one unit = viewport height).
Trait Implementations§
Source§impl Clone for ScrollUnits
impl Clone for ScrollUnits
Source§fn clone(&self) -> ScrollUnits
fn clone(&self) -> ScrollUnits
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ScrollUnits
Source§impl Debug for ScrollUnits
impl Debug for ScrollUnits
impl Eq for ScrollUnits
Source§impl Hash for ScrollUnits
impl Hash for ScrollUnits
Source§impl PartialEq for ScrollUnits
impl PartialEq for ScrollUnits
impl StructuralPartialEq for ScrollUnits
Auto Trait Implementations§
impl Forget for ScrollUnits
impl Freeze for ScrollUnits
impl Move for ScrollUnits
impl RefUnwindSafe for ScrollUnits
impl Send for ScrollUnits
impl Sync for ScrollUnits
impl Unpin for ScrollUnits
impl UnsafeUnpin for ScrollUnits
impl UnwindSafe for ScrollUnits
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