pub struct FontMask { /* private fields */ }
Implementations§
Source§impl FontMask
impl FontMask
pub const FAMILY: FontMask
pub const STYLE: FontMask
pub const VARIANT: FontMask
pub const WEIGHT: FontMask
pub const STRETCH: FontMask
pub const SIZE: FontMask
pub const GRAVITY: FontMask
pub const VARIATIONS: FontMask
Sourcepub fn from_bits(bits: u32) -> Option<FontMask>
pub fn from_bits(bits: u32) -> Option<FontMask>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: u32) -> FontMask
pub const fn from_bits_truncate(bits: u32) -> FontMask
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> FontMask
pub const unsafe fn from_bits_unchecked(bits: u32) -> FontMask
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: FontMask) -> bool
pub const fn intersects(&self, other: FontMask) -> bool
Returns true
if there are flags common to both self
and other
.
Trait Implementations§
Source§impl BitAndAssign for FontMask
impl BitAndAssign for FontMask
Source§fn bitand_assign(&mut self, other: FontMask)
fn bitand_assign(&mut self, other: FontMask)
Disables all flags disabled in the set.
Source§impl BitOrAssign for FontMask
impl BitOrAssign for FontMask
Source§fn bitor_assign(&mut self, other: FontMask)
fn bitor_assign(&mut self, other: FontMask)
Adds the set of flags.
Source§impl BitXorAssign for FontMask
impl BitXorAssign for FontMask
Source§fn bitxor_assign(&mut self, other: FontMask)
fn bitxor_assign(&mut self, other: FontMask)
Toggles the set of flags.
Source§impl Extend<FontMask> for FontMask
impl Extend<FontMask> for FontMask
Source§fn extend<T: IntoIterator<Item = FontMask>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = FontMask>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<FontMask> for FontMask
impl FromIterator<FontMask> for FontMask
Source§impl<'a> FromValueOptional<'a> for FontMask
impl<'a> FromValueOptional<'a> for FontMask
unsafe fn from_value_optional(value: &Value) -> Option<Self>
Source§impl Ord for FontMask
impl Ord for FontMask
Source§impl PartialOrd for FontMask
impl PartialOrd for FontMask
Source§impl StaticType for FontMask
impl StaticType for FontMask
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.Source§impl SubAssign for FontMask
impl SubAssign for FontMask
Source§fn sub_assign(&mut self, other: FontMask)
fn sub_assign(&mut self, other: FontMask)
Disables all flags enabled in the set.
impl Copy for FontMask
impl Eq for FontMask
impl StructuralPartialEq for FontMask
Auto Trait Implementations§
impl Freeze for FontMask
impl RefUnwindSafe for FontMask
impl Send for FontMask
impl Sync for FontMask
impl Unpin for FontMask
impl UnwindSafe for FontMask
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.