pub enum ScrollAlign {
Start,
Center,
End,
Auto,
}Expand description
Scroll alignment options
Variants§
Start
Align item to start of viewport
Center
Align item to center of viewport
End
Align item to end of viewport
Auto
Only scroll if item not visible
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 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