FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FontCodePageCoverage

    struct · ferroui-base · v0.5.0

    struct FontCodePageCoverage
    

    Code pages a font declares support for, as recorded in the OS/2 table's ulCodePageRange1 (low 32 bits) and ulCodePageRange2 (high 32 bits).

    Each bit indicates that the font is considered functional for the corresponding code page. For fallback selection this is the most reliable declared signal of the font's intended locale: a CJK font that sets the JapaneseJis bit but not ChineseSimplified is saying "I'm designed for Japanese".

    View source

    Members

    None

    const None: Self
    

    No code page coverage declared.

    Source

    Latin1

    const Latin1: Self
    

    Source

    Latin2EasternEurope

    const Latin2EasternEurope: Self
    

    Source

    Cyrillic

    const Cyrillic: Self
    

    Source

    Greek

    const Greek: Self
    

    Source

    Turkish

    const Turkish: Self
    

    Source

    Hebrew

    const Hebrew: Self
    

    Source

    Arabic

    const Arabic: Self
    

    Source

    WindowsBaltic

    const WindowsBaltic: Self
    

    Source

    Vietnamese

    const Vietnamese: Self
    

    Source

    Thai

    const Thai: Self
    

    Source

    JapaneseJis

    const JapaneseJis: Self
    

    Source

    ChineseSimplified

    const ChineseSimplified: Self
    

    Source

    KoreanWansung

    const KoreanWansung: Self
    

    Source

    ChineseTraditional

    const ChineseTraditional: Self
    

    Source

    KoreanJohab

    const KoreanJohab: Self
    

    Source

    MacRoman

    const MacRoman: Self
    

    Source

    Oem

    const Oem: Self
    

    Source

    Symbol

    const Symbol: Self
    

    Source

    Ibm869

    const Ibm869: Self
    

    Source

    Msdos866

    const Msdos866: Self
    

    Source

    Msdos865

    const Msdos865: Self
    

    Source

    Arabic864

    const Arabic864: Self
    

    Source

    Msdos863

    const Msdos863: Self
    

    Source

    Hebrew862

    const Hebrew862: Self
    

    Source

    Msdos861

    const Msdos861: Self
    

    Source

    Msdos860

    const Msdos860: Self
    

    Source

    IbmTurkish857

    const IbmTurkish857: Self
    

    Source

    IbmCyrillic855

    const IbmCyrillic855: Self
    

    Source

    Latin2_852

    const Latin2_852: Self
    

    Source

    Msdos775

    const Msdos775: Self
    

    Source

    Greek737

    const Greek737: Self
    

    Source

    Arabic708

    const Arabic708: Self
    

    Source

    WeLatin1_850

    const WeLatin1_850: Self
    

    Source

    Us437

    const Us437: Self
    

    Source

    empty

    const fn empty() -> Self
    

    Get a flags value with all bits unset.

    Source

    all

    const fn all() -> Self
    

    Get a flags value with all known bits set.

    Source

    bits

    const fn bits(self: &Self) -> u64
    

    Get the underlying bits value.

    The returned value is exactly the bits set in this flags value.

    Source

    from_bits

    const fn from_bits(bits: u64) -> $crate::__private::core::option::Option<Self>
    

    Convert from a bits value.

    This method will return None if any unknown bits are set.

    Source

    from_bits_truncate

    const fn from_bits_truncate(bits: u64) -> Self
    

    Convert from a bits value, unsetting any unknown bits.

    Source

    from_bits_retain

    const fn from_bits_retain(bits: u64) -> Self
    

    Convert from a bits value exactly.

    Source

    from_name

    fn from_name(name: &str) -> $crate::__private::core::option::Option<Self>
    

    Get a flags value with the bits of a flag with the given name set.

    This method will return None if name is empty or doesn't correspond to any named flag.

    Source

    is_empty

    const fn is_empty(self: &Self) -> bool
    

    Whether all bits in self are unset.

    Source

    is_all

    const fn is_all(self: &Self) -> bool
    

    Whether all known bits in this flags value are set.

    Source

    intersects

    const fn intersects(self: &Self, other: Self) -> bool
    

    Whether any set bits in other are also set in self.

    Source

    contains

    const fn contains(self: &Self, other: Self) -> bool
    

    Whether all set bits in other are also set in self.

    Source

    insert

    fn insert(self: &mut Self, other: Self)
    

    The bitwise or (|) of the bits in self and other.

    Source

    remove

    fn remove(self: &mut Self, other: Self)
    

    The intersection of self with the complement of other (&!).

    This method is not equivalent to self & !other when other has unknown bits set. remove won't truncate other, but the ! operator will.

    Source

    toggle

    fn toggle(self: &mut Self, other: Self)
    

    The bitwise exclusive-or (^) of the bits in self and other.

    Source

    set

    fn set(self: &mut Self, other: Self, value: bool)
    

    Call insert when value is true or remove when value is false.

    Source

    intersection

    const fn intersection(self: Self, other: Self) -> Self
    

    The bitwise and (&) of the bits in self and other.

    Source

    union

    const fn union(self: Self, other: Self) -> Self
    

    The bitwise or (|) of the bits in self and other.

    Source

    difference

    const fn difference(self: Self, other: Self) -> Self
    

    The intersection of self with the complement of other (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won't truncate other, but the ! operator will.

    Source

    symmetric_difference

    const fn symmetric_difference(self: Self, other: Self) -> Self
    

    The bitwise exclusive-or (^) of the bits in self and other.

    Source

    complement

    const fn complement(self: Self) -> Self
    

    The bitwise negation (!) of the bits in self, truncating the result.

    Source

    iter

    const fn iter(self: &Self) -> $crate::iter::Iter<FontCodePageCoverage>
    

    Yield a set of contained flags values.

    Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.

    Source

    iter_names

    const fn iter_names(self: &Self) -> $crate::iter::IterNames<FontCodePageCoverage>
    

    Yield a set of contained named flags values.

    This method is like iter, except only yields bits in contained named flags. Any unknown bits, or bits not corresponding to a contained flag will not be yielded.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ResourceKeyObject
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Copy
    • Debug
    • Default
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Hash
    • Flags
    • PublicFlags
    • Binary
    • Octal
    • LowerHex
    • UpperHex
    • BitOr
    • BitOrAssign
    • BitXor
    • BitXorAssign
    • BitAnd
    • BitAndAssign
    • Sub
    • SubAssign
    • Not
    • Extend<FontCodePageCoverage>
    • FromIterator<FontCodePageCoverage>
    • IntoIterator

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.