pub struct CompatibilityDiagnostic { /* private fields */ }Expand description
Stable serializable view of one compatibility diagnostic occurrence.
Implementations§
Source§impl CompatibilityDiagnostic
impl CompatibilityDiagnostic
Sourcepub const fn code(&self) -> DiagnosticCode
pub const fn code(&self) -> DiagnosticCode
Returns the stable machine-readable diagnostic code.
Sourcepub const fn severity(&self) -> DiagnosticSeverity
pub const fn severity(&self) -> DiagnosticSeverity
Returns the diagnostic severity.
Sourcepub const fn format(&self) -> OutputFormat
pub const fn format(&self) -> OutputFormat
Returns the format whose projection produced this diagnostic.
Sourcepub fn effects(&self) -> &[DiagnosticEffect]
pub fn effects(&self) -> &[DiagnosticEffect]
Returns the nonempty canonical effect list.
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 diagnostic code.
Trait Implementations§
Source§impl Clone for CompatibilityDiagnostic
impl Clone for CompatibilityDiagnostic
Source§impl Debug for CompatibilityDiagnostic
impl Debug for CompatibilityDiagnostic
Source§impl Display for CompatibilityDiagnostic
impl Display for CompatibilityDiagnostic
Source§impl PartialEq for CompatibilityDiagnostic
impl PartialEq for CompatibilityDiagnostic
Source§impl Serialize for CompatibilityDiagnostic
impl Serialize for CompatibilityDiagnostic
impl StructuralPartialEq for CompatibilityDiagnostic
Auto Trait Implementations§
impl Freeze for CompatibilityDiagnostic
impl RefUnwindSafe for CompatibilityDiagnostic
impl Send for CompatibilityDiagnostic
impl Sync for CompatibilityDiagnostic
impl Unpin for CompatibilityDiagnostic
impl UnsafeUnpin for CompatibilityDiagnostic
impl UnwindSafe for CompatibilityDiagnostic
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.