pub struct ScrollMode { /* private fields */ }
Implementations§
Source§impl ScrollMode
impl ScrollMode
pub const NONE: ScrollMode
pub const HORIZONTALLY: ScrollMode
pub const VERTICALLY: ScrollMode
pub const BOTH: ScrollMode
Sourcepub const fn empty() -> ScrollMode
pub const fn empty() -> ScrollMode
Returns an empty set of flags
Sourcepub const fn all() -> ScrollMode
pub const fn all() -> ScrollMode
Returns the set containing all flags.
Sourcepub fn from_bits(bits: u32) -> Option<ScrollMode>
pub fn from_bits(bits: u32) -> Option<ScrollMode>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: u32) -> ScrollMode
pub const fn from_bits_truncate(bits: u32) -> ScrollMode
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> ScrollMode
pub const unsafe fn from_bits_unchecked(bits: u32) -> ScrollMode
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: ScrollMode) -> bool
pub const fn intersects(&self, other: ScrollMode) -> bool
Returns true
if there are flags common to both self
and other
.
Sourcepub const fn contains(&self, other: ScrollMode) -> bool
pub const fn contains(&self, other: ScrollMode) -> bool
Returns true
all of the flags in other
are contained within self
.
Sourcepub fn insert(&mut self, other: ScrollMode)
pub fn insert(&mut self, other: ScrollMode)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: ScrollMode)
pub fn remove(&mut self, other: ScrollMode)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: ScrollMode)
pub fn toggle(&mut self, other: ScrollMode)
Toggles the specified flags in-place.
Sourcepub fn set(&mut self, other: ScrollMode, value: bool)
pub fn set(&mut self, other: ScrollMode, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations§
Source§impl Binary for ScrollMode
impl Binary for ScrollMode
Source§impl BitAnd for ScrollMode
impl BitAnd for ScrollMode
Source§fn bitand(self, other: ScrollMode) -> ScrollMode
fn bitand(self, other: ScrollMode) -> ScrollMode
Returns the intersection between the two sets of flags.
Source§type Output = ScrollMode
type Output = ScrollMode
&
operator.Source§impl BitAndAssign for ScrollMode
impl BitAndAssign for ScrollMode
Source§fn bitand_assign(&mut self, other: ScrollMode)
fn bitand_assign(&mut self, other: ScrollMode)
Disables all flags disabled in the set.
Source§impl BitOr for ScrollMode
impl BitOr for ScrollMode
Source§fn bitor(self, other: ScrollMode) -> ScrollMode
fn bitor(self, other: ScrollMode) -> ScrollMode
Returns the union of the two sets of flags.
Source§type Output = ScrollMode
type Output = ScrollMode
|
operator.Source§impl BitOrAssign for ScrollMode
impl BitOrAssign for ScrollMode
Source§fn bitor_assign(&mut self, other: ScrollMode)
fn bitor_assign(&mut self, other: ScrollMode)
Adds the set of flags.
Source§impl BitXor for ScrollMode
impl BitXor for ScrollMode
Source§fn bitxor(self, other: ScrollMode) -> ScrollMode
fn bitxor(self, other: ScrollMode) -> ScrollMode
Returns the left flags, but with all the right flags toggled.
Source§type Output = ScrollMode
type Output = ScrollMode
^
operator.Source§impl BitXorAssign for ScrollMode
impl BitXorAssign for ScrollMode
Source§fn bitxor_assign(&mut self, other: ScrollMode)
fn bitxor_assign(&mut self, other: ScrollMode)
Toggles the set of flags.
Source§impl Clone for ScrollMode
impl Clone for ScrollMode
Source§fn clone(&self) -> ScrollMode
fn clone(&self) -> ScrollMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ScrollMode
impl Debug for ScrollMode
Source§impl Extend<ScrollMode> for ScrollMode
impl Extend<ScrollMode> for ScrollMode
Source§fn extend<T: IntoIterator<Item = ScrollMode>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = ScrollMode>>(&mut self, iterator: T)
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)Source§impl FromIterator<ScrollMode> for ScrollMode
impl FromIterator<ScrollMode> for ScrollMode
Source§fn from_iter<T: IntoIterator<Item = ScrollMode>>(iterator: T) -> ScrollMode
fn from_iter<T: IntoIterator<Item = ScrollMode>>(iterator: T) -> ScrollMode
Source§impl<'a> FromValue<'a> for ScrollMode
impl<'a> FromValue<'a> for ScrollMode
Source§unsafe fn from_value(value: &Value) -> Self
unsafe fn from_value(value: &Value) -> Self
Source§impl<'a> FromValueOptional<'a> for ScrollMode
impl<'a> FromValueOptional<'a> for ScrollMode
Source§impl Hash for ScrollMode
impl Hash for ScrollMode
Source§impl LowerHex for ScrollMode
impl LowerHex for ScrollMode
Source§impl Not for ScrollMode
impl Not for ScrollMode
Source§fn not(self) -> ScrollMode
fn not(self) -> ScrollMode
Returns the complement of this set of flags.
Source§type Output = ScrollMode
type Output = ScrollMode
!
operator.Source§impl Octal for ScrollMode
impl Octal for ScrollMode
Source§impl Ord for ScrollMode
impl Ord for ScrollMode
Source§fn cmp(&self, other: &ScrollMode) -> Ordering
fn cmp(&self, other: &ScrollMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ScrollMode
impl PartialEq for ScrollMode
Source§impl PartialOrd for ScrollMode
impl PartialOrd for ScrollMode
Source§impl SetValue for ScrollMode
impl SetValue for ScrollMode
Source§impl StaticType for ScrollMode
impl StaticType for ScrollMode
Source§fn static_type() -> Type
fn static_type() -> Type
Self
.Source§impl Sub for ScrollMode
impl Sub for ScrollMode
Source§fn sub(self, other: ScrollMode) -> ScrollMode
fn sub(self, other: ScrollMode) -> ScrollMode
Returns the set difference of the two sets of flags.
Source§type Output = ScrollMode
type Output = ScrollMode
-
operator.Source§impl SubAssign for ScrollMode
impl SubAssign for ScrollMode
Source§fn sub_assign(&mut self, other: ScrollMode)
fn sub_assign(&mut self, other: ScrollMode)
Disables all flags enabled in the set.
Source§impl UpperHex for ScrollMode
impl UpperHex for ScrollMode
impl Copy for ScrollMode
impl Eq for ScrollMode
impl StructuralPartialEq for ScrollMode
Auto Trait Implementations§
impl Freeze for ScrollMode
impl RefUnwindSafe for ScrollMode
impl Send for ScrollMode
impl Sync for ScrollMode
impl Unpin for ScrollMode
impl UnwindSafe for ScrollMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue
clone of self
.