#[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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
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
A referenced image is not registered or is too large; it is not drawn.
UnsupportedFeature
A feature the provider does not draw; it is left out, never silently approximated.
Fields
UnreadableImage
A referenced image is registered but cannot be decoded; it is not drawn.
UnreadableItem
A package item that does not open; the other items can still be chosen.
NonFiniteSamples
Samples that were NaN or infinite; each is shown as 0.
OutOfHalfRange
Finite 32-bit float samples beyond the half-float range; each is clamped to it.
ReducedPrecision
Channels stored as 32-bit floats are shown at half-float precision.
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.