#[non_exhaustive]pub enum GrowthDirection {
Forward,
}Expand description
The sliver protocol a scrolling viewport lays its children out with —
a widget implements SliverWidget and overrides
Widget::as_sliver to answer SliverConstraints with a
SliverGeometry; a viewport lays such a child out through
ChildPod::layout_sliver_child. Lifted so an app’s own sliver needs no
direct frust-core dependency.
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
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
Source§fn clone(&self) -> GrowthDirection
fn clone(&self) -> GrowthDirection
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for GrowthDirection
Source§impl Debug for GrowthDirection
impl Debug for GrowthDirection
Source§impl Default for GrowthDirection
impl Default for GrowthDirection
Source§fn default() -> GrowthDirection
fn default() -> 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
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,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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
key and return true if they are equal.