pub struct StyleFlag { /* private fields */ }
Implementations§
Source§impl StyleFlag
impl StyleFlag
pub const BOLD: StyleFlag
pub const ITALIC: StyleFlag
Sourcepub fn from_bits(bits: FT_Long) -> Option<StyleFlag>
pub fn from_bits(bits: FT_Long) -> Option<StyleFlag>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: FT_Long) -> StyleFlag
pub const fn from_bits_truncate(bits: FT_Long) -> StyleFlag
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const fn intersects(&self, other: StyleFlag) -> bool
pub const fn intersects(&self, other: StyleFlag) -> bool
Returns true
if there are flags common to both self
and other
.
Trait Implementations§
Source§impl BitAndAssign for StyleFlag
impl BitAndAssign for StyleFlag
Source§fn bitand_assign(&mut self, other: StyleFlag)
fn bitand_assign(&mut self, other: StyleFlag)
Disables all flags disabled in the set.
Source§impl BitOrAssign for StyleFlag
impl BitOrAssign for StyleFlag
Source§fn bitor_assign(&mut self, other: StyleFlag)
fn bitor_assign(&mut self, other: StyleFlag)
Adds the set of flags.
Source§impl BitXorAssign for StyleFlag
impl BitXorAssign for StyleFlag
Source§fn bitxor_assign(&mut self, other: StyleFlag)
fn bitxor_assign(&mut self, other: StyleFlag)
Toggles the set of flags.
Source§impl Extend<StyleFlag> for StyleFlag
impl Extend<StyleFlag> for StyleFlag
Source§fn extend<T: IntoIterator<Item = StyleFlag>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = StyleFlag>>(&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<StyleFlag> for StyleFlag
impl FromIterator<StyleFlag> for StyleFlag
Source§impl PartialOrd for StyleFlag
impl PartialOrd for StyleFlag
Source§impl SubAssign for StyleFlag
impl SubAssign for StyleFlag
Source§fn sub_assign(&mut self, other: StyleFlag)
fn sub_assign(&mut self, other: StyleFlag)
Disables all flags enabled in the set.
impl Copy for StyleFlag
impl Eq for StyleFlag
impl StructuralPartialEq for StyleFlag
Auto Trait Implementations§
impl Freeze for StyleFlag
impl RefUnwindSafe for StyleFlag
impl Send for StyleFlag
impl Sync for StyleFlag
impl Unpin for StyleFlag
impl UnwindSafe for StyleFlag
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