pub struct ScrollAxes {
pub x: bool,
pub y: bool,
}Expand description
Which wheel/trackpad axes a scroll region can consume. Routing prefers the innermost region that handles the DOMINANT axis of a delta — an x-only carousel must not swallow a vertical page scroll.
Fields§
§x: bool§y: boolImplementations§
Source§impl ScrollAxes
impl ScrollAxes
Trait Implementations§
Source§impl Clone for ScrollAxes
impl Clone for ScrollAxes
Source§fn clone(&self) -> ScrollAxes
fn clone(&self) -> ScrollAxes
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 ScrollAxes
Source§impl Debug for ScrollAxes
impl Debug for ScrollAxes
impl Eq for ScrollAxes
Source§impl PartialEq for ScrollAxes
impl PartialEq for ScrollAxes
impl StructuralPartialEq for ScrollAxes
Auto Trait Implementations§
impl Freeze for ScrollAxes
impl RefUnwindSafe for ScrollAxes
impl Send for ScrollAxes
impl Sync for ScrollAxes
impl Unpin for ScrollAxes
impl UnsafeUnpin for ScrollAxes
impl UnwindSafe for ScrollAxes
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