pub struct ScrollUnit(pub u8);Expand description
What a ScrollRange counts.
Tuple Fields§
§0: u8Implementations§
Source§impl ScrollUnit
impl ScrollUnit
Sourcepub const ITEMS: ScrollUnit
pub const ITEMS: ScrollUnit
A collection’s items along the axis (Android’s collection rows or columns), numbered from 0.
Sourcepub const PERCENT: ScrollUnit
pub const PERCENT: ScrollUnit
Percent of the scrollable range, 0 to 100, for a position the platform
reports as a value between bounds (Android’s RangeInfo).
Trait Implementations§
Source§impl Clone for ScrollUnit
impl Clone for ScrollUnit
impl Copy for ScrollUnit
Source§impl Debug for ScrollUnit
impl Debug for ScrollUnit
Source§impl<'bytes, Ctx> Decode<'bytes, Ctx> for ScrollUnit
impl<'bytes, Ctx> Decode<'bytes, Ctx> for ScrollUnit
Source§impl Default for ScrollUnit
impl Default for ScrollUnit
Source§impl Display for ScrollUnit
impl Display for ScrollUnit
Source§impl<Ctx> Encode<Ctx> for ScrollUnit
impl<Ctx> Encode<Ctx> for ScrollUnit
impl Eq for ScrollUnit
Source§impl Hash for ScrollUnit
impl Hash for ScrollUnit
Source§impl Ord for ScrollUnit
impl Ord for ScrollUnit
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ScrollUnit
impl PartialEq for ScrollUnit
Source§impl PartialOrd for ScrollUnit
impl PartialOrd for ScrollUnit
impl StructuralPartialEq for ScrollUnit
Auto Trait Implementations§
impl Freeze for ScrollUnit
impl RefUnwindSafe for ScrollUnit
impl Send for ScrollUnit
impl Sync for ScrollUnit
impl Unpin for ScrollUnit
impl UnsafeUnpin for ScrollUnit
impl UnwindSafe for ScrollUnit
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