#[non_exhaustive]pub enum ScrollRange {
Scene,
Through,
Enter,
Exit,
}Expand description
Which stretch of scrolling a ScrollLink counts as going from 0 to 1.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Scene
The nearest ScrollScene around the element: 0 when the scene pins, 1 when it
lets go. Outside a scene, the same as Self::Through.
Through
The element’s whole pass across the visible area: 0 when its top reaches the bottom edge, 1 when its bottom leaves through the top edge.
Enter
The element coming in: 0 when its top reaches the bottom edge, 1 when it is fully visible (or, if taller than the view, when its top reaches the top edge).
Exit
The element going out: 0 when its top reaches the top edge, 1 when its bottom does.
Trait Implementations§
Source§impl Clone for ScrollRange
impl Clone for ScrollRange
Source§fn clone(&self) -> ScrollRange
fn clone(&self) -> ScrollRange
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 ScrollRange
Source§impl Debug for ScrollRange
impl Debug for ScrollRange
Source§impl Default for ScrollRange
impl Default for ScrollRange
Source§fn default() -> ScrollRange
fn default() -> ScrollRange
Returns the “default value” for a type. Read more
impl Eq for ScrollRange
Source§impl PartialEq for ScrollRange
impl PartialEq for ScrollRange
impl StructuralPartialEq for ScrollRange
Auto Trait Implementations§
impl Freeze for ScrollRange
impl RefUnwindSafe for ScrollRange
impl Send for ScrollRange
impl Sync for ScrollRange
impl Unpin for ScrollRange
impl UnsafeUnpin for ScrollRange
impl UnwindSafe for ScrollRange
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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
impl<T> Brush for T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.