FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FontTableError

    enum · ferroui-base · v0.5.0

    enum FontTableError
    

    The failures the table readers report instead of the exceptions the reference implementation throws while parsing font data.

    View source

    Members

    EndOfSpan

    EndOfSpan { missing: i64 }
    

    A read ran past the end of the data (reference: InvalidOperationException "End of span reached ...").

    Source

    ArgumentOutOfRange

    ArgumentOutOfRange { param_name: &'static str, message: Option<String> }
    

    An offset, count or slice was outside of the data (reference: ArgumentOutOfRangeException).

    Source

    InvalidOperation

    InvalidOperation(String)
    

    Any other invalid state (reference: InvalidOperationException).

    Source

    InvalidFontTable

    InvalidFontTable(super::invalid_font_table_exception::InvalidFontTableError)
    

    Invalid data in a table.

    Source

    MissingFontTable

    MissingFontTable(super::missing_font_table_exception::MissingFontTableError)
    

    A required table is missing.

    Source

    is_invalid_operation

    fn is_invalid_operation(self: &Self) -> bool
    

    Whether the reference implementation reports this failure as an InvalidOperationException (end of span or invalid state).

    Source

    is_argument_out_of_range

    fn is_argument_out_of_range(self: &Self) -> bool
    

    Whether the reference implementation reports this failure as an ArgumentOutOfRangeException.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ToString
    • ErasedDestructor
    • IntoEither
    • Clone
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Display
    • Error
    • From<InvalidFontTableError>
    • From<MissingFontTableError>

    Availability

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