pub enum SnapPosition {
Start,
Center,
End,
}Expand description
Where in the pager a page comes to rest — Compose’s SnapPosition. It
matters for a page shorter than the space between the content paddings.
Variants§
Start
At the start, after the start padding.
Center
In the middle of the space between the paddings, with room for the neighbouring pages on both sides.
End
At the end, before the end padding.
Trait Implementations§
Source§impl Clone for SnapPosition
impl Clone for SnapPosition
impl Copy for SnapPosition
Source§impl Debug for SnapPosition
impl Debug for SnapPosition
Source§impl Default for SnapPosition
impl Default for SnapPosition
impl Eq for SnapPosition
Source§impl PartialEq for SnapPosition
impl PartialEq for SnapPosition
impl StructuralPartialEq for SnapPosition
Auto Trait Implementations§
impl Freeze for SnapPosition
impl RefUnwindSafe for SnapPosition
impl Send for SnapPosition
impl Sync for SnapPosition
impl Unpin for SnapPosition
impl UnsafeUnpin for SnapPosition
impl UnwindSafe for SnapPosition
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
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