pub enum Error {
Show 31 variants
IoError(Error),
FeaCompileError(CompilerError),
GlyphError(GlyphName, GlyphProblem),
KurboError {
glyph_name: GlyphName,
kurbo_problem: MalformedPath,
context: String,
},
ComponentError {
glyph: GlyphName,
referenced_glyph: GlyphName,
problem: GlyphProblem,
},
ComponentErrors {
glyph: GlyphName,
errors: Vec<Error>,
},
DumpTableError {
e: Error,
context: String,
},
OutOfBounds {
what: String,
value: String,
},
GlyphDeltaError(GlyphName, DeltaError),
MvarDeltaError(Tag, DeltaError),
AnchorDeltaError(GlyphName, DeltaError),
KernDeltaError {
pair: KernPair,
error: DeltaError,
},
GvarError(GvarInputError),
ReadFontsReadError(ReadError),
IupError(GlyphName, IupError),
InvalidTableBytes(Tag),
MissingDirectory(PathBuf),
VariationModelError(GlyphName, VariationModelError),
FileExpected(PathBuf),
MissingTable(Tag),
ExpectedAnchor(WorkId),
MissingGlyphClass(GlyphName),
PreviouslyAssignedMarkClass {
old_class: SmolStr,
new_class: SmolStr,
glyph: GlyphName,
},
NoVariationModel(NormalizedLocation),
DeltaError(DeltaError),
MissingGlyphId(GlyphName),
CmapConflict(CmapConflict),
CompositesStalled(Vec<GlyphName>),
InconsistentPaletteLength(Vec<usize>),
NoGlobalMetricsInstance(NormalizedLocation),
MissingPaletteEntry(Color),
}Variants§
IoError(Error)
FeaCompileError(CompilerError)
GlyphError(GlyphName, GlyphProblem)
KurboError
ComponentError
ComponentErrors
DumpTableError
OutOfBounds
GlyphDeltaError(GlyphName, DeltaError)
MvarDeltaError(Tag, DeltaError)
AnchorDeltaError(GlyphName, DeltaError)
KernDeltaError
GvarError(GvarInputError)
ReadFontsReadError(ReadError)
IupError(GlyphName, IupError)
InvalidTableBytes(Tag)
MissingDirectory(PathBuf)
VariationModelError(GlyphName, VariationModelError)
FileExpected(PathBuf)
MissingTable(Tag)
ExpectedAnchor(WorkId)
MissingGlyphClass(GlyphName)
PreviouslyAssignedMarkClass
NoVariationModel(NormalizedLocation)
DeltaError(DeltaError)
MissingGlyphId(GlyphName)
CmapConflict(CmapConflict)
CompositesStalled(Vec<GlyphName>)
InconsistentPaletteLength(Vec<usize>)
NoGlobalMetricsInstance(NormalizedLocation)
MissingPaletteEntry(Color)
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Source§impl From<CmapConflict> for Error
impl From<CmapConflict> for Error
Source§fn from(source: CmapConflict) -> Self
fn from(source: CmapConflict) -> Self
Converts to this type from the input type.
Source§impl From<CompilerError> for Error
impl From<CompilerError> for Error
Source§fn from(source: CompilerError) -> Self
fn from(source: CompilerError) -> Self
Converts to this type from the input type.
Source§impl From<GvarInputError> for Error
impl From<GvarInputError> for Error
Source§fn from(source: GvarInputError) -> Self
fn from(source: GvarInputError) -> Self
Converts to this type from the input type.
Source§impl Work<Context, AnyWorkId, Error> for FeatureFirstPassWork
impl Work<Context, AnyWorkId, Error> for FeatureFirstPassWork
Source§fn read_access(&self) -> Access<AnyWorkId>
fn read_access(&self) -> Access<AnyWorkId>
What this work needs to be able to read; our dependencies Read more
fn exec(&self, context: &Context) -> Result<(), Error>
Source§fn also_completes(&self) -> Vec<I>
fn also_completes(&self) -> Vec<I>
The identifier(s) for any work beyond ourself that is completed when this work completes. Read more
Source§fn write_access(&self) -> Access<I>
fn write_access(&self) -> Access<I>
What this work needs to be able to write. Read more
Source§impl Work<Context, AnyWorkId, Error> for FeatureCompilationWork
impl Work<Context, AnyWorkId, Error> for FeatureCompilationWork
Source§fn read_access(&self) -> Access<AnyWorkId>
fn read_access(&self) -> Access<AnyWorkId>
What this work needs to be able to read; our dependencies Read more
Source§fn also_completes(&self) -> Vec<AnyWorkId>
fn also_completes(&self) -> Vec<AnyWorkId>
The identifier(s) for any work beyond ourself that is completed when this work completes. Read more
fn exec(&self, context: &Context) -> Result<(), Error>
Source§fn write_access(&self) -> Access<I>
fn write_access(&self) -> Access<I>
What this work needs to be able to write. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin 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
Mutably borrows from an owned value. Read more
impl<T> ErasedDestructor for Twhere
T: 'static,
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
Convert this type into
T, using the provided data to resolve any offsets.