pub struct RenderError { /* private fields */ }Expand description
Fatal render failure with the complete report accumulated before failure.
Error::source is always None: dependency failures (decoders,
encoders, font tooling) are flattened into the stable code and message.
Implementations§
Source§impl RenderError
impl RenderError
Sourcepub const fn category(&self) -> RenderErrorCategory
pub const fn category(&self) -> RenderErrorCategory
Returns the stable fatal failure category.
Sourcepub const fn format(&self) -> OutputFormat
pub const fn format(&self) -> OutputFormat
Returns the selected output format.
Sourcepub fn element_id(&self) -> Option<&str>
pub fn element_id(&self) -> Option<&str>
Returns the normalized source element ID, when applicable.
Sourcepub fn json_pointer(&self) -> &str
pub fn json_pointer(&self) -> &str
Returns the required RFC 6901 scene pointer.
Sourcepub fn details(&self) -> Option<&DiagnosticDetails>
pub fn details(&self) -> Option<&DiagnosticDetails>
Returns typed details required by the stable error code.
Sourcepub const fn report(&self) -> &CompatibilityReport
pub const fn report(&self) -> &CompatibilityReport
Returns the complete ordered report accumulated before failure.
Sourcepub fn descriptor(&self) -> ErrorDescriptor
pub fn descriptor(&self) -> ErrorDescriptor
Returns this failure’s stable serializable descriptor.
Trait Implementations§
Source§impl Clone for RenderError
impl Clone for RenderError
Source§impl Debug for RenderError
impl Debug for RenderError
Source§impl Display for RenderError
impl Display for RenderError
Source§impl Error for RenderError
impl Error for RenderError
1.30.0 · 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 Freeze for RenderError
impl RefUnwindSafe for RenderError
impl Send for RenderError
impl Sync for RenderError
impl Unpin for RenderError
impl UnsafeUnpin for RenderError
impl UnwindSafe for RenderError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.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.