#[non_exhaustive]pub enum GrowthDirection {
Forward,
}Expand description
Which way content grows relative to the viewport’s leading edge — Flutter’s
GrowthDirection.
Only GrowthDirection::Forward exists: slivers are laid out from the
leading edge outward in the axis’ natural direction. The type is
non-exhaustive so a reverse-growing (centre-anchored) viewport can add
Flutter’s reverse without breaking a match.
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.
Forward
Content grows away from the viewport’s leading edge, in the scroll axis’ natural direction (down, or right).
Trait Implementations§
Source§impl Clone for GrowthDirection
impl Clone for GrowthDirection
impl Copy for GrowthDirection
Source§impl Debug for GrowthDirection
impl Debug for GrowthDirection
Source§impl Default for GrowthDirection
impl Default for GrowthDirection
impl Eq for GrowthDirection
Source§impl Hash for GrowthDirection
impl Hash for GrowthDirection
Source§impl PartialEq for GrowthDirection
impl PartialEq for GrowthDirection
impl StructuralPartialEq for GrowthDirection
Auto Trait Implementations§
impl Freeze for GrowthDirection
impl RefUnwindSafe for GrowthDirection
impl Send for GrowthDirection
impl Sync for GrowthDirection
impl Unpin for GrowthDirection
impl UnsafeUnpin for GrowthDirection
impl UnwindSafe for GrowthDirection
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.