#[non_exhaustive]pub enum ConfigurationError {
Show 13 variants
UnknownTarget(String),
UnknownProfile(String),
UnknownEnvironment(String),
Read {
profile: String,
message: String,
},
Inherits(String),
BuiltInKey(&'static str),
Missing(&'static str),
Value(&'static str),
NotRead(&'static str),
Pair(&'static str, &'static str),
Group(&'static [&'static str]),
UnknownQuirk(String),
Environment(EnvironmentError),
}Expand description
Why a target’s ID names no target, or the configuration or the target’s profile does not
read: the error of Target::from_str and of Error::Configuration.
Why a target’s ID names no target, or the configuration or the target’s profile does not
read.
An error in a target’s name, a profile or a configuration.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnknownTarget(String)
No target has this name.
UnknownProfile(String)
No profile has this name, as inherits names it.
UnknownEnvironment(String)
No font environment has this name, as fonts.environment names it.
Read
A profile does not read as a profile, with what is wrong.
Fields
Inherits(String)
The chain of inherits from this profile does not end, or an override’s layer named
this inherits from another profile than its target’s.
BuiltInKey(&'static str)
An override’s layer sets a key that only a profile or the configuration sets.
Missing(&'static str)
The merged profile or the configuration lacks a key.
Value(&'static str)
A value has the wrong kind, or a number is not positive.
NotRead(&'static str)
The configuration sets a key that F-Office does not read yet.
Pair(&'static str, &'static str)
A profile sets one key of a pair that is “off” or set together, such as the two densities of a resampled picture, and leaves the other “off”.
Group(&'static [&'static str])
A profile sets some keys of a group that are “off” or set together, such as the keys of a palette density, and leaves others “off”.
UnknownQuirk(String)
A profile sets a quirk that the registry lacks.
Environment(EnvironmentError)
The merged font environment does not build.
Trait Implementations§
impl Eq for Error
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Forget for Error
impl Freeze for Error
impl Move for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Errorwhere
RawVecInner: Sync,
impl Unpin for Error
impl UnsafeUnpin for Errorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
&'static str: UnsafeUnpin,
&'static [&'static str]: UnsafeUnpin,
impl UnwindSafe for Error
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.