pub struct ViewType { /* private fields */ }Expand description
Viewtype - like x11 flags
Implementations§
Source§impl ViewType
impl ViewType
Sourcepub fn from_bits(bits: u32) -> Option<ViewType>
pub fn from_bits(bits: u32) -> Option<ViewType>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub fn from_bits_truncate(bits: u32) -> ViewType
pub fn from_bits_truncate(bits: u32) -> ViewType
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub fn intersects(&self, other: ViewType) -> bool
pub fn intersects(&self, other: ViewType) -> bool
Returns true if there are flags common to both self and other.
Trait Implementations§
Source§impl BitAndAssign for ViewType
impl BitAndAssign for ViewType
Source§fn bitand_assign(&mut self, other: ViewType)
fn bitand_assign(&mut self, other: ViewType)
Disables all flags disabled in the set.
Source§impl BitOrAssign for ViewType
impl BitOrAssign for ViewType
Source§fn bitor_assign(&mut self, other: ViewType)
fn bitor_assign(&mut self, other: ViewType)
Adds the set of flags.
Source§impl BitXorAssign for ViewType
impl BitXorAssign for ViewType
Source§fn bitxor_assign(&mut self, other: ViewType)
fn bitxor_assign(&mut self, other: ViewType)
Toggles the set of flags.
Source§impl FromIterator<ViewType> for ViewType
impl FromIterator<ViewType> for ViewType
Source§impl Ord for ViewType
impl Ord for ViewType
Source§impl PartialOrd for ViewType
impl PartialOrd for ViewType
Source§impl SubAssign for ViewType
impl SubAssign for ViewType
Source§fn sub_assign(&mut self, other: ViewType)
fn sub_assign(&mut self, other: ViewType)
Disables all flags enabled in the set.
impl Copy for ViewType
impl Eq for ViewType
impl StructuralPartialEq for ViewType
Auto Trait Implementations§
impl Freeze for ViewType
impl RefUnwindSafe for ViewType
impl Send for ViewType
impl Sync for ViewType
impl Unpin for ViewType
impl UnwindSafe for ViewType
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