pub struct ScrollFlags(pub u32);Expand description
Which ways a node can scroll from where it is.
Tuple Fields§
§0: u32Implementations§
Source§impl ScrollFlags
impl ScrollFlags
Sourcepub const EMPTY: ScrollFlags
pub const EMPTY: ScrollFlags
No bit set.
Sourcepub const BACK: ScrollFlags
pub const BACK: ScrollFlags
Back, toward the start: up, or left in a left-to-right layout.
Sourcepub const FORWARD: ScrollFlags
pub const FORWARD: ScrollFlags
Forward, toward the end: down, or right in a left-to-right layout.
Sourcepub const fn contains(self, other: ScrollFlags) -> bool
pub const fn contains(self, other: ScrollFlags) -> bool
Whether every bit of other is set in self.
Trait Implementations§
Source§impl BitOr for ScrollFlags
impl BitOr for ScrollFlags
Source§type Output = ScrollFlags
type Output = ScrollFlags
The resulting type after applying the
| operator.Source§fn bitor(self, rhs: ScrollFlags) -> ScrollFlags
fn bitor(self, rhs: ScrollFlags) -> ScrollFlags
Performs the
| operation. Read moreSource§impl BitOrAssign for ScrollFlags
impl BitOrAssign for ScrollFlags
Source§fn bitor_assign(&mut self, rhs: ScrollFlags)
fn bitor_assign(&mut self, rhs: ScrollFlags)
Performs the
|= operation. Read moreSource§impl Clone for ScrollFlags
impl Clone for ScrollFlags
impl Copy for ScrollFlags
Source§impl Debug for ScrollFlags
impl Debug for ScrollFlags
Source§impl<'bytes, Ctx> Decode<'bytes, Ctx> for ScrollFlags
impl<'bytes, Ctx> Decode<'bytes, Ctx> for ScrollFlags
Source§impl Default for ScrollFlags
impl Default for ScrollFlags
Source§impl Display for ScrollFlags
impl Display for ScrollFlags
Source§impl<Ctx> Encode<Ctx> for ScrollFlags
impl<Ctx> Encode<Ctx> for ScrollFlags
impl Eq for ScrollFlags
Source§impl Hash for ScrollFlags
impl Hash for ScrollFlags
Source§impl PartialEq for ScrollFlags
impl PartialEq 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 UnsafeUnpin 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