#[non_exhaustive]pub enum BuildError {
MissingFormat,
InvalidPrimitives(PrimitiveRegistryError),
FormatPreloadFailed(FormatPreloadError),
ProfileFormatMismatch {
profile: &'static str,
format_profile: &'static str,
},
InvalidPackagedFormat,
PackagedFontsUnavailable,
AmbiguousFormat,
}Expand description
Error returned when constructing an engine.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MissingFormat
No format image was supplied to the builder.
InvalidPrimitives(PrimitiveRegistryError)
The primitive registry rejected the profile’s primitive specifications.
FormatPreloadFailed(FormatPreloadError)
Format resource preloading failed during engine build.
ProfileFormatMismatch
The format image’s profile does not match the requested engine profile.
Fields
InvalidPackagedFormat
The packaged bytes were not produced by pack_packaged_format for this build target.
A native font preserved in the packaged format failed to reload through the font system.
AmbiguousFormat
Both a format image and a packaged format were supplied to the builder.
Trait Implementations§
Source§impl Clone for BuildError
impl Clone for BuildError
Source§impl Debug for BuildError
impl Debug for BuildError
impl Eq for BuildError
Source§impl PartialEq for BuildError
impl PartialEq for BuildError
impl StructuralPartialEq for BuildError
Auto Trait Implementations§
impl Freeze for BuildError
impl RefUnwindSafe for BuildError
impl Send for BuildError
impl Sync for BuildError
impl Unpin for BuildError
impl UnsafeUnpin for BuildError
impl UnwindSafe for BuildError
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