[−][src]Struct gravitas::PagerSnapPoint
A SnapPoint is either an end point or a point of attraction. Every pager needs at least two snap points to define the extents
Fields
value: f32
The location of the snap point.
snap: bool
Whether we should snap at this snap point. We will snap to one point or the other if both have this value set. Otherwise we allow free movement between a point with snap set to false and a point with snap set to true.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SnapPoint
impl Send for SnapPoint
impl Sync for SnapPoint
impl Unpin for SnapPoint
impl UnwindSafe for SnapPoint
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,