Struct write_fonts::tables::head::MacStyle
source · pub struct MacStyle { /* private fields */ }Expand description
The macStyle field for the head table.
Implementations§
source§impl MacStyle
impl MacStyle
sourcepub const fn from_bits(bits: u16) -> Option<MacStyle>
pub const fn from_bits(bits: u16) -> Option<MacStyle>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
sourcepub const fn from_bits_truncate(bits: u16) -> MacStyle
pub const fn from_bits_truncate(bits: u16) -> MacStyle
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub const fn intersects(&self, other: MacStyle) -> bool
pub const fn intersects(&self, other: MacStyle) -> bool
Returns true if there are flags common to both self and other.
sourcepub const fn contains(&self, other: MacStyle) -> bool
pub const fn contains(&self, other: MacStyle) -> bool
Returns true if all of the flags in other are contained within self.
sourcepub const fn intersection(self, other: MacStyle) -> MacStyle
pub const fn intersection(self, other: MacStyle) -> MacStyle
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: MacStyle) -> MacStyle
pub const fn union(self, other: MacStyle) -> MacStyle
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: MacStyle) -> MacStyle
pub const fn difference(self, other: MacStyle) -> MacStyle
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 BitAndAssign for MacStyle
impl BitAndAssign for MacStyle
source§fn bitand_assign(&mut self, other: MacStyle)
fn bitand_assign(&mut self, other: MacStyle)
Disables all flags disabled in the set.
source§impl BitOrAssign for MacStyle
impl BitOrAssign for MacStyle
source§fn bitor_assign(&mut self, other: MacStyle)
fn bitor_assign(&mut self, other: MacStyle)
Adds the set of flags.
source§impl BitXorAssign for MacStyle
impl BitXorAssign for MacStyle
source§fn bitxor_assign(&mut self, other: MacStyle)
fn bitxor_assign(&mut self, other: MacStyle)
Toggles the set of flags.
source§impl FontWrite for MacStyle
impl FontWrite for MacStyle
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 Ord for MacStyle
impl Ord for MacStyle
source§impl PartialEq for MacStyle
impl PartialEq for MacStyle
source§impl PartialOrd for MacStyle
impl PartialOrd for MacStyle
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl Scalar for MacStyle
impl Scalar for MacStyle
source§impl SubAssign for MacStyle
impl SubAssign for MacStyle
source§fn sub_assign(&mut self, other: MacStyle)
fn sub_assign(&mut self, other: MacStyle)
Disables all flags enabled in the set.
impl Copy for MacStyle
impl Eq for MacStyle
impl StructuralPartialEq for MacStyle
Auto Trait Implementations§
impl RefUnwindSafe for MacStyle
impl Send for MacStyle
impl Sync for MacStyle
impl Unpin for MacStyle
impl UnwindSafe for MacStyle
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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.