pub enum FontConfigError {
Io {
path: PathBuf,
source: Error,
},
Json {
path: PathBuf,
source: Error,
},
UnknownAbbrev {
path: PathBuf,
face: &'static str,
abbrev: String,
},
UnsupportedCollectionIndex {
abbrev: String,
index: u32,
},
RegularRequired,
Font(FontError),
}Expand description
Errors from discovering or resolving a font configuration. Distinct from
FontError (which is about a font file failing to load/parse): this
type is about the configuration pointing at a bad state in the first
place (malformed JSON, a dangling abbrev reference, an unsupported TTC
index, …). FontErrors that occur while actually loading a resolved
path are wrapped via Font.
Variants§
Trait Implementations§
Source§impl Debug for FontConfigError
impl Debug for FontConfigError
Source§impl Display for FontConfigError
impl Display for FontConfigError
Source§impl Error for FontConfigError
impl Error for FontConfigError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for FontConfigError
impl !UnwindSafe for FontConfigError
impl Freeze for FontConfigError
impl Send for FontConfigError
impl Sync for FontConfigError
impl Unpin for FontConfigError
impl UnsafeUnpin for FontConfigError
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