pub struct ViewPropertyType { /* private fields */ }Expand description
Which view property is being updated
Implementations§
Source§impl ViewPropertyType
impl ViewPropertyType
Sourcepub fn empty() -> ViewPropertyType
pub fn empty() -> ViewPropertyType
Returns an empty set of flags.
Sourcepub fn all() -> ViewPropertyType
pub fn all() -> ViewPropertyType
Returns the set containing all flags.
Sourcepub fn from_bits(bits: u32) -> Option<ViewPropertyType>
pub fn from_bits(bits: u32) -> Option<ViewPropertyType>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub fn from_bits_truncate(bits: u32) -> ViewPropertyType
pub fn from_bits_truncate(bits: u32) -> ViewPropertyType
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub fn intersects(&self, other: ViewPropertyType) -> bool
pub fn intersects(&self, other: ViewPropertyType) -> bool
Returns true if there are flags common to both self and other.
Sourcepub fn contains(&self, other: ViewPropertyType) -> bool
pub fn contains(&self, other: ViewPropertyType) -> bool
Returns true all of the flags in other are contained within self.
Sourcepub fn insert(&mut self, other: ViewPropertyType)
pub fn insert(&mut self, other: ViewPropertyType)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: ViewPropertyType)
pub fn remove(&mut self, other: ViewPropertyType)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: ViewPropertyType)
pub fn toggle(&mut self, other: ViewPropertyType)
Toggles the specified flags in-place.
Trait Implementations§
Source§impl BitAnd for ViewPropertyType
impl BitAnd for ViewPropertyType
Source§fn bitand(self, other: ViewPropertyType) -> ViewPropertyType
fn bitand(self, other: ViewPropertyType) -> ViewPropertyType
Returns the intersection between the two sets of flags.
Source§type Output = ViewPropertyType
type Output = ViewPropertyType
& operator.Source§impl BitAndAssign for ViewPropertyType
impl BitAndAssign for ViewPropertyType
Source§fn bitand_assign(&mut self, other: ViewPropertyType)
fn bitand_assign(&mut self, other: ViewPropertyType)
Disables all flags disabled in the set.
Source§impl BitOr for ViewPropertyType
impl BitOr for ViewPropertyType
Source§fn bitor(self, other: ViewPropertyType) -> ViewPropertyType
fn bitor(self, other: ViewPropertyType) -> ViewPropertyType
Returns the union of the two sets of flags.
Source§type Output = ViewPropertyType
type Output = ViewPropertyType
| operator.Source§impl BitOrAssign for ViewPropertyType
impl BitOrAssign for ViewPropertyType
Source§fn bitor_assign(&mut self, other: ViewPropertyType)
fn bitor_assign(&mut self, other: ViewPropertyType)
Adds the set of flags.
Source§impl BitXor for ViewPropertyType
impl BitXor for ViewPropertyType
Source§fn bitxor(self, other: ViewPropertyType) -> ViewPropertyType
fn bitxor(self, other: ViewPropertyType) -> ViewPropertyType
Returns the left flags, but with all the right flags toggled.
Source§type Output = ViewPropertyType
type Output = ViewPropertyType
^ operator.Source§impl BitXorAssign for ViewPropertyType
impl BitXorAssign for ViewPropertyType
Source§fn bitxor_assign(&mut self, other: ViewPropertyType)
fn bitxor_assign(&mut self, other: ViewPropertyType)
Toggles the set of flags.
Source§impl Clone for ViewPropertyType
impl Clone for ViewPropertyType
Source§fn clone(&self) -> ViewPropertyType
fn clone(&self) -> ViewPropertyType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ViewPropertyType
impl Debug for ViewPropertyType
Source§impl FromIterator<ViewPropertyType> for ViewPropertyType
impl FromIterator<ViewPropertyType> for ViewPropertyType
Source§fn from_iter<T: IntoIterator<Item = ViewPropertyType>>(
iterator: T,
) -> ViewPropertyType
fn from_iter<T: IntoIterator<Item = ViewPropertyType>>( iterator: T, ) -> ViewPropertyType
Source§impl Hash for ViewPropertyType
impl Hash for ViewPropertyType
Source§impl Not for ViewPropertyType
impl Not for ViewPropertyType
Source§fn not(self) -> ViewPropertyType
fn not(self) -> ViewPropertyType
Returns the complement of this set of flags.
Source§type Output = ViewPropertyType
type Output = ViewPropertyType
! operator.Source§impl Ord for ViewPropertyType
impl Ord for ViewPropertyType
Source§fn cmp(&self, other: &ViewPropertyType) -> Ordering
fn cmp(&self, other: &ViewPropertyType) -> 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 ViewPropertyType
impl PartialEq for ViewPropertyType
Source§impl PartialOrd for ViewPropertyType
impl PartialOrd for ViewPropertyType
Source§impl Sub for ViewPropertyType
impl Sub for ViewPropertyType
Source§fn sub(self, other: ViewPropertyType) -> ViewPropertyType
fn sub(self, other: ViewPropertyType) -> ViewPropertyType
Returns the set difference of the two sets of flags.
Source§type Output = ViewPropertyType
type Output = ViewPropertyType
- operator.Source§impl SubAssign for ViewPropertyType
impl SubAssign for ViewPropertyType
Source§fn sub_assign(&mut self, other: ViewPropertyType)
fn sub_assign(&mut self, other: ViewPropertyType)
Disables all flags enabled in the set.