#[non_exhaustive]pub enum Diagnostic {
NormalizedDelay {
frame: usize,
declared_ms: u32,
},
MissingFont {
families: String,
},
MissingImage {
href: String,
},
UnsupportedFeature {
feature: String,
path: String,
count: usize,
},
UnreadableImage {
href: String,
reason: String,
},
UnreadableItem {
item: String,
reason: String,
},
NonFiniteSamples {
count: usize,
},
OutOfHalfRange {
count: usize,
},
ReducedPrecision,
}Expand description
Something a provider did that the user should know about.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NormalizedDelay
A frame’s delay was MAX_NORMALIZED_DELAY_MS or less and is shown for
NORMALIZED_DELAY_MS.
MissingFont
Text names a font no registered font provides; it is not drawn.
MissingImage
An image the document references is not registered, or declares a size larger than a provider opens; it is not drawn.
UnsupportedFeature
A feature the provider does not draw, where it first appears and how many times it does: it is left out, never approximated silently.
Fields
UnreadableImage
An image the document references is registered but cannot be drawn (a format an SVG image is not drawn from, or an SVG that does not parse), and why; it is not drawn.
UnreadableItem
An item of a package that does not open, and why; the package’s others can still be chosen.
NonFiniteSamples
Samples that were NaN or infinite; each is shown as 0.
OutOfHalfRange
Finite 32-bit float samples beyond the largest half float; each is shown as the largest half float of its sign.
ReducedPrecision
Channels stored as 32-bit floats are shown at half-float precision, about three decimal digits.
Trait Implementations§
Source§impl Clone for Diagnostic
impl Clone for Diagnostic
Source§impl Debug for Diagnostic
impl Debug for Diagnostic
impl Eq for Diagnostic
Source§impl PartialEq for Diagnostic
impl PartialEq for Diagnostic
Source§impl Serialize for Diagnostic
impl Serialize for Diagnostic
impl StructuralPartialEq for Diagnostic
Auto Trait Implementations§
impl Freeze for Diagnostic
impl RefUnwindSafe for Diagnostic
impl Send for Diagnostic
impl Sync for Diagnostic
impl Unpin for Diagnostic
impl UnsafeUnpin for Diagnostic
impl UnwindSafe for Diagnostic
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.