#[repr(u16)]pub enum ScrollAlign {
Keep = 0,
Start = 1,
Center = 2,
End = 3,
Nearest = 4,
}Expand description
How a rectangle is brought into view along one axis: CSS’s block and inline values,
and Keep for an axis that must not move.
Variants§
Keep = 0
The axis does not move.
Start = 1
Center = 2
End = 3
Nearest = 4
No movement when the rectangle is already in view, otherwise the smallest one that shows it. A rectangle larger than the viewport is aligned to its start.
Trait Implementations§
Source§impl Clone for ScrollAlign
impl Clone for ScrollAlign
impl Copy for ScrollAlign
Source§impl Debug for ScrollAlign
impl Debug for ScrollAlign
Source§impl Default for ScrollAlign
impl Default for ScrollAlign
impl Eq for ScrollAlign
Source§impl PartialEq for ScrollAlign
impl PartialEq for ScrollAlign
impl StructuralPartialEq for ScrollAlign
Auto Trait Implementations§
impl Forget for ScrollAlign
impl Freeze for ScrollAlign
impl Move for ScrollAlign
impl RefUnwindSafe for ScrollAlign
impl Send for ScrollAlign
impl Sync for ScrollAlign
impl Unpin for ScrollAlign
impl UnsafeUnpin 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