pub enum ScrollAlign {
Start,
Center,
End,
Nearest,
}Expand description
Scroll alignment for ScrollIntoView.
Variants§
Start
Scrolls so that the element is in the top / left corner of the screen.
Center
Scrolls so that the element is centered in the middle of the screen.
End
Scrolls so that the element is in the bottom / right corner of the screen.
Nearest
If the element is already in view, then do nothing.
If the element is not in view, then scroll the smallest amount to make the element in view.
Trait Implementations§
Source§impl Clone for ScrollAlign
impl Clone for ScrollAlign
Source§fn clone(&self) -> ScrollAlign
fn clone(&self) -> ScrollAlign
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 ScrollAlign
impl Debug for ScrollAlign
Source§impl Hash for ScrollAlign
impl Hash for ScrollAlign
Source§impl PartialEq for ScrollAlign
impl PartialEq for ScrollAlign
impl Copy for ScrollAlign
impl Eq for ScrollAlign
impl StructuralPartialEq for ScrollAlign
Auto Trait Implementations§
impl Freeze for ScrollAlign
impl RefUnwindSafe for ScrollAlign
impl Send for ScrollAlign
impl Sync for ScrollAlign
impl Unpin for ScrollAlign
impl UnwindSafe for ScrollAlign
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