#[repr(C)]pub enum ScrollLogicalPosition {
Start = 0,
Center = 1,
End = 2,
Nearest = 3,
}Expand description
Scroll alignment for vertical (block) or horizontal (inline) axis
Determines where the target element should be positioned within the scroll container’s visible area.
Variants§
Start = 0
Align target’s start edge with container’s start edge
Center = 1
Center target within container
End = 2
Align target’s end edge with container’s end edge
Nearest = 3
Minimum scroll distance to make target fully visible (default)
Trait Implementations§
Source§impl Clone for ScrollLogicalPosition
impl Clone for ScrollLogicalPosition
Source§fn clone(&self) -> ScrollLogicalPosition
fn clone(&self) -> ScrollLogicalPosition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ScrollLogicalPosition
impl Debug for ScrollLogicalPosition
Source§impl Default for ScrollLogicalPosition
impl Default for ScrollLogicalPosition
Source§fn default() -> ScrollLogicalPosition
fn default() -> ScrollLogicalPosition
Returns the “default value” for a type. Read more
Source§impl Hash for ScrollLogicalPosition
impl Hash for ScrollLogicalPosition
Source§impl Ord for ScrollLogicalPosition
impl Ord for ScrollLogicalPosition
Source§fn cmp(&self, other: &ScrollLogicalPosition) -> Ordering
fn cmp(&self, other: &ScrollLogicalPosition) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ScrollLogicalPosition
impl PartialEq for ScrollLogicalPosition
Source§fn eq(&self, other: &ScrollLogicalPosition) -> bool
fn eq(&self, other: &ScrollLogicalPosition) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ScrollLogicalPosition
impl PartialOrd for ScrollLogicalPosition
impl Copy for ScrollLogicalPosition
impl Eq for ScrollLogicalPosition
impl StructuralPartialEq for ScrollLogicalPosition
Auto Trait Implementations§
impl Freeze for ScrollLogicalPosition
impl RefUnwindSafe for ScrollLogicalPosition
impl Send for ScrollLogicalPosition
impl Sync for ScrollLogicalPosition
impl Unpin for ScrollLogicalPosition
impl UnsafeUnpin for ScrollLogicalPosition
impl UnwindSafe for ScrollLogicalPosition
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