pub struct ScrollToOptions {
pub align: ScrollAlignment,
pub behavior: ScrollBehavior,
}Expand description
Configuration for a programmatic scroll operation.
Used by scroll_to_index, scroll_to_offset, and scroll_by
to control where and how the scroll occurs.
Fields§
§align: ScrollAlignmentHow to align the target within the viewport.
behavior: ScrollBehaviorThe animation behavior for the scroll.
Trait Implementations§
Source§impl Clone for ScrollToOptions
impl Clone for ScrollToOptions
Source§fn clone(&self) -> ScrollToOptions
fn clone(&self) -> ScrollToOptions
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 ScrollToOptions
impl Debug for ScrollToOptions
Source§impl Default for ScrollToOptions
impl Default for ScrollToOptions
Source§impl PartialEq for ScrollToOptions
impl PartialEq for ScrollToOptions
impl Copy for ScrollToOptions
impl StructuralPartialEq for ScrollToOptions
Auto Trait Implementations§
impl Freeze for ScrollToOptions
impl RefUnwindSafe for ScrollToOptions
impl Send for ScrollToOptions
impl Sync for ScrollToOptions
impl Unpin for ScrollToOptions
impl UnsafeUnpin for ScrollToOptions
impl UnwindSafe for ScrollToOptions
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