#[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 · 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 · 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§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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more