pub enum ScrollDirection {
Vertical,
Horizontal,
}Expand description
Direction of virtualization scrolling.
Determines whether the virtualizer measures items along the vertical or horizontal axis. This affects how scroll positions, item sizes, and container dimensions are interpreted by the engine.
Variants§
Vertical
Virtualize items along the vertical axis.
Item sizes represent heights and scroll position tracks vertical offset within the container.
Horizontal
Virtualize items along the horizontal axis.
Item sizes represent widths and scroll position tracks horizontal offset within the container.
Trait Implementations§
Source§impl Clone for ScrollDirection
impl Clone for ScrollDirection
Source§fn clone(&self) -> ScrollDirection
fn clone(&self) -> ScrollDirection
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScrollDirection
impl Debug for ScrollDirection
Source§impl Default for ScrollDirection
impl Default for ScrollDirection
Source§impl PartialEq for ScrollDirection
impl PartialEq for ScrollDirection
impl Copy for ScrollDirection
impl Eq for ScrollDirection
impl StructuralPartialEq for ScrollDirection
Auto Trait Implementations§
impl Freeze for ScrollDirection
impl RefUnwindSafe for ScrollDirection
impl Send for ScrollDirection
impl Sync for ScrollDirection
impl Unpin for ScrollDirection
impl UnsafeUnpin for ScrollDirection
impl UnwindSafe for ScrollDirection
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