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.
Members
EndOfSpanArgumentOutOfRangeInvalidOperationInvalidFontTableMissingFontTableis_invalid_operationis_argument_out_of_range
EndOfSpan
EndOfSpan { missing: i64 }
A read ran past the end of the data (reference: InvalidOperationException
"End of span reached ...").
ArgumentOutOfRange
ArgumentOutOfRange { param_name: &'static str, message: Option<String> }
An offset, count or slice was outside of the data (reference:
ArgumentOutOfRangeException).
InvalidOperation
InvalidOperation(String)
Any other invalid state (reference: InvalidOperationException).
InvalidFontTable
InvalidFontTable(super::invalid_font_table_exception::InvalidFontTableError)
Invalid data in a table.
MissingFontTable
MissingFontTable(super::missing_font_table_exception::MissingFontTableError)
A required table is missing.
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).
is_argument_out_of_range
fn is_argument_out_of_range(self: &Self) -> bool
Whether the reference implementation reports this failure as an
ArgumentOutOfRangeException.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafePropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedToStringErasedDestructorIntoEitherCloneDebugStructuralPartialEqPartialEqEqDisplayErrorFrom<InvalidFontTableError>From<MissingFontTableError>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.