pub struct PatchMapFieldPresenceFlags { /* private fields */ }
ift
only.Implementations§
Source§impl PatchMapFieldPresenceFlags
impl PatchMapFieldPresenceFlags
Sourcepub const fn empty() -> PatchMapFieldPresenceFlags
pub const fn empty() -> PatchMapFieldPresenceFlags
Returns an empty set of flags.
Sourcepub const fn all() -> PatchMapFieldPresenceFlags
pub const fn all() -> PatchMapFieldPresenceFlags
Returns the set containing all flags.
Sourcepub const fn from_bits(bits: u8) -> Option<PatchMapFieldPresenceFlags>
pub const fn from_bits(bits: u8) -> Option<PatchMapFieldPresenceFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: u8) -> PatchMapFieldPresenceFlags
pub const fn from_bits_truncate(bits: u8) -> PatchMapFieldPresenceFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const fn intersects(&self, other: PatchMapFieldPresenceFlags) -> bool
pub const fn intersects(&self, other: PatchMapFieldPresenceFlags) -> bool
Returns true
if there are flags common to both self
and other
.
Sourcepub const fn contains(&self, other: PatchMapFieldPresenceFlags) -> bool
pub const fn contains(&self, other: PatchMapFieldPresenceFlags) -> bool
Returns true
if all of the flags in other
are contained within self
.
Sourcepub fn insert(&mut self, other: PatchMapFieldPresenceFlags)
pub fn insert(&mut self, other: PatchMapFieldPresenceFlags)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: PatchMapFieldPresenceFlags)
pub fn remove(&mut self, other: PatchMapFieldPresenceFlags)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: PatchMapFieldPresenceFlags)
pub fn toggle(&mut self, other: PatchMapFieldPresenceFlags)
Toggles the specified flags in-place.
Sourcepub const fn intersection(
self,
other: PatchMapFieldPresenceFlags,
) -> PatchMapFieldPresenceFlags
pub const fn intersection( self, other: PatchMapFieldPresenceFlags, ) -> PatchMapFieldPresenceFlags
Returns the intersection between the flags in self
and
other
.
Specifically, the returned set contains only the flags which are
present in both self
and other
.
This is equivalent to using the &
operator (e.g.
ops::BitAnd
), as in flags & other
.
Sourcepub const fn union(
self,
other: PatchMapFieldPresenceFlags,
) -> PatchMapFieldPresenceFlags
pub const fn union( self, other: PatchMapFieldPresenceFlags, ) -> PatchMapFieldPresenceFlags
Returns the union of between the flags in self
and other
.
Specifically, the returned set contains all flags which are
present in either self
or other
, including any which are
present in both.
This is equivalent to using the |
operator (e.g.
ops::BitOr
), as in flags | other
.
Sourcepub const fn difference(
self,
other: PatchMapFieldPresenceFlags,
) -> PatchMapFieldPresenceFlags
pub const fn difference( self, other: PatchMapFieldPresenceFlags, ) -> PatchMapFieldPresenceFlags
Returns the difference between the flags in self
and other
.
Specifically, the returned set contains all flags present in
self
, except for the ones present in other
.
It is also conceptually equivalent to the “bit-clear” operation:
flags & !other
(and this syntax is also supported).
This is equivalent to using the -
operator (e.g.
ops::Sub
), as in flags - other
.
Trait Implementations§
Source§impl Binary for PatchMapFieldPresenceFlags
impl Binary for PatchMapFieldPresenceFlags
Source§impl BitAnd for PatchMapFieldPresenceFlags
impl BitAnd for PatchMapFieldPresenceFlags
Source§fn bitand(self, other: PatchMapFieldPresenceFlags) -> PatchMapFieldPresenceFlags
fn bitand(self, other: PatchMapFieldPresenceFlags) -> PatchMapFieldPresenceFlags
Returns the intersection between the two sets of flags.
Source§type Output = PatchMapFieldPresenceFlags
type Output = PatchMapFieldPresenceFlags
&
operator.Source§impl BitAndAssign for PatchMapFieldPresenceFlags
impl BitAndAssign for PatchMapFieldPresenceFlags
Source§fn bitand_assign(&mut self, other: PatchMapFieldPresenceFlags)
fn bitand_assign(&mut self, other: PatchMapFieldPresenceFlags)
Disables all flags disabled in the set.
Source§impl BitOr for PatchMapFieldPresenceFlags
impl BitOr for PatchMapFieldPresenceFlags
Source§fn bitor(self, other: PatchMapFieldPresenceFlags) -> PatchMapFieldPresenceFlags
fn bitor(self, other: PatchMapFieldPresenceFlags) -> PatchMapFieldPresenceFlags
Returns the union of the two sets of flags.
Source§type Output = PatchMapFieldPresenceFlags
type Output = PatchMapFieldPresenceFlags
|
operator.Source§impl BitOrAssign for PatchMapFieldPresenceFlags
impl BitOrAssign for PatchMapFieldPresenceFlags
Source§fn bitor_assign(&mut self, other: PatchMapFieldPresenceFlags)
fn bitor_assign(&mut self, other: PatchMapFieldPresenceFlags)
Adds the set of flags.
Source§impl BitXor for PatchMapFieldPresenceFlags
impl BitXor for PatchMapFieldPresenceFlags
Source§fn bitxor(self, other: PatchMapFieldPresenceFlags) -> PatchMapFieldPresenceFlags
fn bitxor(self, other: PatchMapFieldPresenceFlags) -> PatchMapFieldPresenceFlags
Returns the left flags, but with all the right flags toggled.
Source§type Output = PatchMapFieldPresenceFlags
type Output = PatchMapFieldPresenceFlags
^
operator.Source§impl BitXorAssign for PatchMapFieldPresenceFlags
impl BitXorAssign for PatchMapFieldPresenceFlags
Source§fn bitxor_assign(&mut self, other: PatchMapFieldPresenceFlags)
fn bitxor_assign(&mut self, other: PatchMapFieldPresenceFlags)
Toggles the set of flags.
Source§impl Clone for PatchMapFieldPresenceFlags
impl Clone for PatchMapFieldPresenceFlags
Source§fn clone(&self) -> PatchMapFieldPresenceFlags
fn clone(&self) -> PatchMapFieldPresenceFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PatchMapFieldPresenceFlags
impl Debug for PatchMapFieldPresenceFlags
Source§impl Default for PatchMapFieldPresenceFlags
impl Default for PatchMapFieldPresenceFlags
Source§fn default() -> PatchMapFieldPresenceFlags
fn default() -> PatchMapFieldPresenceFlags
Source§impl<'de> Deserialize<'de> for PatchMapFieldPresenceFlags
impl<'de> Deserialize<'de> for PatchMapFieldPresenceFlags
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PatchMapFieldPresenceFlags, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PatchMapFieldPresenceFlags, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl FontWrite for PatchMapFieldPresenceFlags
impl FontWrite for PatchMapFieldPresenceFlags
Source§fn write_into(&self, writer: &mut TableWriter)
fn write_into(&self, writer: &mut TableWriter)
Source§fn table_type(&self) -> TableType
fn table_type(&self) -> TableType
Source§impl Hash for PatchMapFieldPresenceFlags
impl Hash for PatchMapFieldPresenceFlags
Source§impl Not for PatchMapFieldPresenceFlags
impl Not for PatchMapFieldPresenceFlags
Source§fn not(self) -> PatchMapFieldPresenceFlags
fn not(self) -> PatchMapFieldPresenceFlags
Returns the complement of this set of flags.
Source§type Output = PatchMapFieldPresenceFlags
type Output = PatchMapFieldPresenceFlags
!
operator.Source§impl Octal for PatchMapFieldPresenceFlags
impl Octal for PatchMapFieldPresenceFlags
Source§impl Ord for PatchMapFieldPresenceFlags
impl Ord for PatchMapFieldPresenceFlags
Source§fn cmp(&self, other: &PatchMapFieldPresenceFlags) -> Ordering
fn cmp(&self, other: &PatchMapFieldPresenceFlags) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for PatchMapFieldPresenceFlags
impl PartialOrd for PatchMapFieldPresenceFlags
Source§impl Scalar for PatchMapFieldPresenceFlags
impl Scalar for PatchMapFieldPresenceFlags
Source§fn to_raw(self) -> <PatchMapFieldPresenceFlags as Scalar>::Raw
fn to_raw(self) -> <PatchMapFieldPresenceFlags as Scalar>::Raw
Source§fn from_raw(
raw: <PatchMapFieldPresenceFlags as Scalar>::Raw,
) -> PatchMapFieldPresenceFlags
fn from_raw( raw: <PatchMapFieldPresenceFlags as Scalar>::Raw, ) -> PatchMapFieldPresenceFlags
Source§impl Serialize for PatchMapFieldPresenceFlags
impl Serialize for PatchMapFieldPresenceFlags
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Source§impl Sub for PatchMapFieldPresenceFlags
impl Sub for PatchMapFieldPresenceFlags
Source§fn sub(self, other: PatchMapFieldPresenceFlags) -> PatchMapFieldPresenceFlags
fn sub(self, other: PatchMapFieldPresenceFlags) -> PatchMapFieldPresenceFlags
Returns the set difference of the two sets of flags.
Source§type Output = PatchMapFieldPresenceFlags
type Output = PatchMapFieldPresenceFlags
-
operator.Source§impl SubAssign for PatchMapFieldPresenceFlags
impl SubAssign for PatchMapFieldPresenceFlags
Source§fn sub_assign(&mut self, other: PatchMapFieldPresenceFlags)
fn sub_assign(&mut self, other: PatchMapFieldPresenceFlags)
Disables all flags enabled in the set.
impl AnyBitPattern for PatchMapFieldPresenceFlags
impl Copy for PatchMapFieldPresenceFlags
impl Eq for PatchMapFieldPresenceFlags
impl StructuralPartialEq for PatchMapFieldPresenceFlags
Auto Trait Implementations§
impl Freeze for PatchMapFieldPresenceFlags
impl RefUnwindSafe for PatchMapFieldPresenceFlags
impl Send for PatchMapFieldPresenceFlags
impl Sync for PatchMapFieldPresenceFlags
impl Unpin for PatchMapFieldPresenceFlags
impl UnwindSafe for PatchMapFieldPresenceFlags
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
bits
as &Self
.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<T> FixedSize for Twhere
T: Scalar,
impl<T> FixedSize for Twhere
T: Scalar,
Source§const RAW_BYTE_LEN: usize
const RAW_BYTE_LEN: usize
Source§impl<T> FromObjRef<BigEndian<T>> for T
impl<T> FromObjRef<BigEndian<T>> for T
Source§fn from_obj_ref(from: &BigEndian<T>, _: FontData<'_>) -> T
fn from_obj_ref(from: &BigEndian<T>, _: FontData<'_>) -> T
from
to an instance of Self
, using the provided data to resolve offsets.Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T
, using the provided data to resolve any offsets.