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