pub struct SceneParseError { /* private fields */ }Expand description
Indicates that scene-document bytes could not be admitted.
Error::source is always None: JSON decoder failures are flattened
into the stable code and message.
Implementations§
Source§impl SceneParseError
impl SceneParseError
Sourcepub fn json_pointer(&self) -> Option<&str>
pub fn json_pointer(&self) -> Option<&str>
Returns the narrowest reliable scene-document JSON pointer.
Sourcepub fn details(&self) -> Option<&DiagnosticDetails>
pub fn details(&self) -> Option<&DiagnosticDetails>
Returns typed details required by this failure’s stable code.
Sourcepub fn descriptor(&self) -> ErrorDescriptor
pub fn descriptor(&self) -> ErrorDescriptor
Returns this failure’s stable serializable descriptor.
Trait Implementations§
Source§impl Clone for SceneParseError
impl Clone for SceneParseError
Source§impl Debug for SceneParseError
impl Debug for SceneParseError
Source§impl Display for SceneParseError
impl Display for SceneParseError
Source§impl Error for SceneParseError
impl Error for SceneParseError
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 SceneParseError
impl RefUnwindSafe for SceneParseError
impl Send for SceneParseError
impl Sync for SceneParseError
impl Unpin for SceneParseError
impl UnsafeUnpin for SceneParseError
impl UnwindSafe for SceneParseError
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.