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