Struct ScrollFlags
pub struct ScrollFlags(/* private fields */);
Implementations§
§impl ScrollFlags
impl ScrollFlags
pub const NO_EMULATION: ScrollFlags = _
pub const PREFERRED: ScrollFlags = _
§impl ScrollFlags
impl ScrollFlags
pub fn contains(self, flag: impl Into<u32>) -> bool
pub fn contains(self, flag: impl Into<u32>) -> bool
Check if this object has all bits set that are also set in flag
.
flag
can be a single enum variant or a whole other mask.
pub fn intersects(self, flag: impl Into<u32>) -> bool
pub fn intersects(self, flag: impl Into<u32>) -> bool
Check if this object has some bits set that are also set in flag
.
flag
can be a single enum variant or a whole other mask.
pub fn remove(self, flags: impl Into<u32>) -> ScrollFlags
pub fn remove(self, flags: impl Into<u32>) -> ScrollFlags
Remove some flags.
All bits that are set in the given flags are removed from the self
instance, if
they are present.
Trait Implementations§
§impl BitAnd<u32> for ScrollFlags
impl BitAnd<u32> for ScrollFlags
§impl BitAnd for ScrollFlags
impl BitAnd for ScrollFlags
§type Output = ScrollFlags
type Output = ScrollFlags
The resulting type after applying the
&
operator.§fn bitand(self, other: ScrollFlags) -> <ScrollFlags as BitAnd>::Output
fn bitand(self, other: ScrollFlags) -> <ScrollFlags as BitAnd>::Output
Performs the
&
operation. Read more§impl BitAndAssign<u32> for ScrollFlags
impl BitAndAssign<u32> for ScrollFlags
§fn bitand_assign(&mut self, other: u32)
fn bitand_assign(&mut self, other: u32)
Performs the
&=
operation. Read more§impl BitAndAssign for ScrollFlags
impl BitAndAssign for ScrollFlags
§fn bitand_assign(&mut self, other: ScrollFlags)
fn bitand_assign(&mut self, other: ScrollFlags)
Performs the
&=
operation. Read more§impl BitOr<u32> for ScrollFlags
impl BitOr<u32> for ScrollFlags
§impl BitOr for ScrollFlags
impl BitOr for ScrollFlags
§type Output = ScrollFlags
type Output = ScrollFlags
The resulting type after applying the
|
operator.§fn bitor(self, other: ScrollFlags) -> <ScrollFlags as BitOr>::Output
fn bitor(self, other: ScrollFlags) -> <ScrollFlags as BitOr>::Output
Performs the
|
operation. Read more§impl BitOrAssign<u32> for ScrollFlags
impl BitOrAssign<u32> for ScrollFlags
§fn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the
|=
operation. Read more§impl BitOrAssign for ScrollFlags
impl BitOrAssign for ScrollFlags
§fn bitor_assign(&mut self, other: ScrollFlags)
fn bitor_assign(&mut self, other: ScrollFlags)
Performs the
|=
operation. Read more§impl Clone for ScrollFlags
impl Clone for ScrollFlags
§fn clone(&self) -> ScrollFlags
fn clone(&self) -> ScrollFlags
Returns a copy 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 more§impl Debug for ScrollFlags
impl Debug for ScrollFlags
§impl Default for ScrollFlags
impl Default for ScrollFlags
§fn default() -> ScrollFlags
fn default() -> ScrollFlags
Returns the “default value” for a type. Read more
§impl From<u16> for ScrollFlags
impl From<u16> for ScrollFlags
§fn from(value: u16) -> ScrollFlags
fn from(value: u16) -> ScrollFlags
Converts to this type from the input type.
§impl From<u32> for ScrollFlags
impl From<u32> for ScrollFlags
§fn from(value: u32) -> ScrollFlags
fn from(value: u32) -> ScrollFlags
Converts to this type from the input type.
§impl From<u8> for ScrollFlags
impl From<u8> for ScrollFlags
§fn from(value: u8) -> ScrollFlags
fn from(value: u8) -> ScrollFlags
Converts to this type from the input type.
§impl Hash for ScrollFlags
impl Hash for ScrollFlags
§impl Ord for ScrollFlags
impl Ord for ScrollFlags
§impl PartialEq for ScrollFlags
impl PartialEq for ScrollFlags
§impl PartialOrd for ScrollFlags
impl PartialOrd for ScrollFlags
impl Copy for ScrollFlags
impl Eq for ScrollFlags
impl StructuralPartialEq for ScrollFlags
Auto Trait Implementations§
impl Freeze for ScrollFlags
impl RefUnwindSafe for ScrollFlags
impl Send for ScrollFlags
impl Sync for ScrollFlags
impl Unpin for ScrollFlags
impl UnwindSafe for ScrollFlags
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)