#[repr(C)]pub struct ViewState { /* private fields */ }
Expand description
How window is being viewed
Implementations§
Source§impl ViewState
impl ViewState
Sourcepub fn from_bits(bits: u32) -> Option<ViewState>
pub fn from_bits(bits: u32) -> Option<ViewState>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub fn from_bits_truncate(bits: u32) -> ViewState
pub fn from_bits_truncate(bits: u32) -> ViewState
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub fn intersects(&self, other: ViewState) -> bool
pub fn intersects(&self, other: ViewState) -> bool
Returns true
if there are flags common to both self
and other
.
Trait Implementations§
Source§impl BitAndAssign for ViewState
impl BitAndAssign for ViewState
Source§fn bitand_assign(&mut self, other: ViewState)
fn bitand_assign(&mut self, other: ViewState)
Disables all flags disabled in the set.
Source§impl BitOrAssign for ViewState
impl BitOrAssign for ViewState
Source§fn bitor_assign(&mut self, other: ViewState)
fn bitor_assign(&mut self, other: ViewState)
Adds the set of flags.
Source§impl BitXorAssign for ViewState
impl BitXorAssign for ViewState
Source§fn bitxor_assign(&mut self, other: ViewState)
fn bitxor_assign(&mut self, other: ViewState)
Toggles the set of flags.
Source§impl Extend<ViewState> for ViewState
impl Extend<ViewState> for ViewState
Source§fn extend<T: IntoIterator<Item = ViewState>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = ViewState>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<ViewState> for ViewState
impl FromIterator<ViewState> for ViewState
Source§impl Ord for ViewState
impl Ord for ViewState
Source§impl PartialOrd for ViewState
impl PartialOrd for ViewState
Source§impl SubAssign for ViewState
impl SubAssign for ViewState
Source§fn sub_assign(&mut self, other: ViewState)
fn sub_assign(&mut self, other: ViewState)
Disables all flags enabled in the set.
impl Copy for ViewState
impl Eq for ViewState
impl StructuralPartialEq for ViewState
Auto Trait Implementations§
impl Freeze for ViewState
impl RefUnwindSafe for ViewState
impl Send for ViewState
impl Sync for ViewState
impl Unpin for ViewState
impl UnwindSafe for ViewState
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