#[non_exhaustive]pub enum ScrollSnapType {
Block,
Both,
Inline,
None,
X,
Y,
Raw(Raw),
}Expand description
A value of scroll-snap-type.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Block
block.
Both
both.
Inline
inline.
None
none.
X
x.
Y
y.
Raw(Raw)
Any other value, passed through unchecked.
Trait Implementations§
Source§impl Clone for ScrollSnapType
impl Clone for ScrollSnapType
Source§fn clone(&self) -> ScrollSnapType
fn clone(&self) -> ScrollSnapType
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 ScrollSnapType
impl Debug for ScrollSnapType
Source§impl Display for ScrollSnapType
impl Display for ScrollSnapType
Source§impl From<Raw> for ScrollSnapType
impl From<Raw> for ScrollSnapType
Source§impl PartialEq for ScrollSnapType
impl PartialEq for ScrollSnapType
impl StructuralPartialEq for ScrollSnapType
Auto Trait Implementations§
impl Freeze for ScrollSnapType
impl RefUnwindSafe for ScrollSnapType
impl Send for ScrollSnapType
impl Sync for ScrollSnapType
impl Unpin for ScrollSnapType
impl UnsafeUnpin for ScrollSnapType
impl UnwindSafe for ScrollSnapType
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