pub struct FontMask { /* private fields */ }Implementations
sourceimpl 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
sourceimpl BitAndAssign<FontMask> for FontMask
impl BitAndAssign<FontMask> for FontMask
sourcefn bitand_assign(&mut self, other: FontMask)
fn bitand_assign(&mut self, other: FontMask)
Disables all flags disabled in the set.
sourceimpl BitOrAssign<FontMask> for FontMask
impl BitOrAssign<FontMask> for FontMask
sourcefn bitor_assign(&mut self, other: FontMask)
fn bitor_assign(&mut self, other: FontMask)
Adds the set of flags.
sourceimpl BitXorAssign<FontMask> for FontMask
impl BitXorAssign<FontMask> for FontMask
sourcefn bitxor_assign(&mut self, other: FontMask)
fn bitxor_assign(&mut self, other: FontMask)
Toggles the set of flags.
sourceimpl Extend<FontMask> for FontMask
impl Extend<FontMask> for FontMask
sourcefn 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
sourcefn 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.
sourcefn 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
sourceimpl FromIterator<FontMask> for FontMask
impl FromIterator<FontMask> for FontMask
sourceimpl<'a> FromValueOptional<'a> for FontMask
impl<'a> FromValueOptional<'a> for FontMask
unsafe fn from_value_optional(value: &Value) -> Option<Self>
sourceimpl Ord for FontMask
impl Ord for FontMask
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<FontMask> for FontMask
impl PartialOrd<FontMask> for FontMask
sourcefn partial_cmp(&self, other: &FontMask) -> Option<Ordering>
fn partial_cmp(&self, other: &FontMask) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresourceimpl StaticType for FontMask
impl StaticType for FontMask
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.sourceimpl SubAssign<FontMask> for FontMask
impl SubAssign<FontMask> for FontMask
sourcefn 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 StructuralEq for FontMask
impl StructuralPartialEq for FontMask
Auto Trait Implementations
impl RefUnwindSafe for FontMask
impl Send for FontMask
impl Sync for FontMask
impl Unpin for FontMask
impl UnwindSafe for FontMask
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue clone of self.