Skip to main content

DiagnosticCode

Struct DiagnosticCode 

Source
pub struct DiagnosticCode(/* private fields */);
Expand description

String-backed stable compatibility diagnostic code.

Implementations§

Source§

impl DiagnosticCode

Source

pub const NORMALIZATION_MISSING_ELEMENT_ID: Self

A missing source element ID was repaired.

Source

pub const NORMALIZATION_DUPLICATE_ELEMENT_ID: Self

A later duplicate source element ID was repaired.

Source

pub const NORMALIZATION_MISSING_TIMESTAMP: Self

A missing required timestamp was repaired to canonical zero.

Source

pub const NORMALIZATION_ZERO_ROUGH_SEED: Self

A zero Rough seed was repaired deterministically.

Source

pub const NORMALIZATION_RELATIONSHIP_CYCLE: Self

A cycle-closing relationship edge was removed.

Source

pub const COMPATIBILITY_UNSUPPORTED_ELEMENT_TYPE: Self

An unknown element type used the compatibility fallback.

Source

pub const COMPATIBILITY_MALFORMED_ELEMENT: Self

A malformed element was replaced or omitted.

Source

pub const COMPATIBILITY_UNSUPPORTED_PROPERTY: Self

An unsupported property was ignored.

Source

pub const COMPATIBILITY_UNSUPPORTED_PROPERTY_VALUE: Self

An unsupported property value used its declared recovery.

Source

pub const COMPATIBILITY_KNOWN_ELEMENT_REPLACED: Self

A known but unavailable element was replaced or omitted.

Source

pub const ASSET_SUPPLEMENT_CONFLICT: Self

A scene-embedded asset remained authoritative over a supplement.

Source

pub const ASSET_MEDIA_TYPE_MISMATCH: Self

Sniffed payload type replaced a mismatched advisory media type.

Source

pub const ASSET_MALFORMED_FILE_RECORD: Self

A referenced scene file record was malformed.

Source

pub const IMAGE_MISSING_FILE: Self

A referring image had no authoritative file payload.

Source

pub const IMAGE_FORBIDDEN_RESOURCE: Self

A forbidden image resource was removed or replaced.

Source

pub const IMAGE_ANIMATION_FLATTENED: Self

A rendered animated image occurrence was flattened.

Source

pub const IMAGE_UNSUPPORTED_FORMAT: Self

An unsupported image format was omitted or replaced.

Source

pub const IMAGE_DECODE_FAILED: Self

Image decoding failed and used format-specific recovery.

Source

pub const IMAGE_UNSAFE_SVG_CONTENT_REMOVED: Self

Unsafe nested SVG content was removed.

An unsafe element link was omitted.

Source

pub const COLOR_INVALID: Self

An invalid color was substituted deterministically.

Source

pub const FONT_LIBERATION_SANS_SUBSTITUTED: Self

A local font request used bundled Liberation Sans.

Source

pub const FONT_NOTO_EMOJI_SUBSTITUTED: Self

Emoji text used bundled Noto Emoji.

Source

pub const FONT_MISSING_GLYPH: Self

A missing glyph was replaced deterministically.

Source

pub const RESOURCE_ELEMENT_COMPLEXITY_REPLACED: Self

An over-complex element was replaced or omitted.

Source

pub const RESOURCE_ELEMENT_WORK_EXCEEDED: Self

Element-local semantic work used local recovery.

Source

pub const RESOURCE_ASSET_BYTES_EXCEEDED: Self

One asset occurrence exceeded its byte ceiling.

Source

pub const RESOURCE_ASSET_WORK_EXCEEDED: Self

One semantic asset exceeded its work ceiling.

Source

pub const RESOURCE_IMAGE_DIMENSIONS_EXCEEDED: Self

Raster dimensions exceeded the local image ceiling.

Source

pub const RESOURCE_IMAGE_PIXELS_EXCEEDED: Self

Decoded image pixels exceeded the local asset ceiling.

Source

pub const RESOURCE_NESTED_SVG_COMPLEXITY_EXCEEDED: Self

Nested SVG complexity exceeded its local node ceiling.

Source

pub const RESOURCE_NESTED_ASSET_DEPTH_EXCEEDED: Self

Nested asset discovery exceeded its local depth ceiling.

Source

pub const RESOURCE_COORDINATE_RANGE_EXCEEDED: Self

A coordinate exceeded its local magnitude ceiling.

Source

pub const RESOURCE_OPTIONAL_METADATA_OMITTED: Self

Optional metadata was omitted after a resource crossing.

Source

pub const METADATA_PROVENANCE_SERIALIZATION_FAILED: Self

Provenance serialization failed and was omitted.

Source

pub const METADATA_DIAGNOSTIC_SUMMARY_SERIALIZATION_FAILED: Self

Diagnostic-summary serialization failed and was omitted.

Source

pub const METADATA_SCENE_SERIALIZATION_FAILED: Self

Embedded-scene serialization failed and was omitted.

Source

pub const METADATA_SCENE_COMPRESSION_FAILED: Self

Embedded-scene compression failed and was omitted.

Source

pub const METADATA_SCENE_EMBEDDING_FAILED: Self

Embedded-scene carrier insertion failed and was omitted.

Source

pub const METADATA_MANIFEST_SERIALIZATION_FAILED: Self

Artifact-manifest serialization failed.

Source

pub const METADATA_MANIFEST_EMBEDDING_FAILED: Self

Artifact-manifest carrier insertion failed.

Source

pub const PDF_RASTER_FALLBACK: Self

A permitted isolated PDF closure was rasterized.

Source

pub const fn as_str(self) -> &'static str

Returns the stable serialized spelling.

Trait Implementations§

Source§

impl Clone for DiagnosticCode

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for DiagnosticCode

Source§

impl Debug for DiagnosticCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for DiagnosticCode

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for DiagnosticCode

Source§

impl Hash for DiagnosticCode

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for DiagnosticCode

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for DiagnosticCode

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for DiagnosticCode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> Finish for T

Source§

fn finish(self)

Does nothing but move self, equivalent to drop.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<U, T> ToOwnedObj<U> for T
where U: FromObjRef<T>,

Source§

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 T
where U: FromObjRef<T>,

Source§

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> ToOwnedTable<U> for T
where U: FromTableRef<T>,

Source§

fn to_owned_table(&self) -> U

Source§

impl<U, T> ToOwnedTable<U> for T
where U: FromTableRef<T>,

Source§

fn to_owned_table(&self) -> U

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.