#[non_exhaustive]pub enum WarningKind {
PartLeftOut,
MaterialLeftOut,
MaterialUndefined,
MaterialRepeated,
Ignored,
Repeated,
Implausible,
TooMany,
}Expand description
What a Warning is about.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
PartLeftOut
A part was left out: a size missing, unreadable or below zero, a unit or shape the reader doesn’t take, a material of the wrong kind, a value holding an element, or an element that isn’t a kind of part.
MaterialLeftOut
A material was left out: an unknown unit or kind, no density, a density below zero or too
large for an f64, or a name or kind holding an element.
MaterialUndefined
A part names a material its file doesn’t define; it has no density.
MaterialRepeated
A file defines two materials of the same name and kind with different densities; parts take the first.
Ignored
Fields a part’s kind doesn’t have, elements beside the catalog’s lists, or a <Version>
holding an element, were ignored.
Repeated
A field or a list was stated more than once; the last was read.
Implausible
A value read as written that can’t be right: a wall of no thickness or less, a solid lighter than air, or a fabric lighter than any made.
TooMany
MAX_WARNINGS were given; the rest are counted, not listed.
Trait Implementations§
Source§impl Clone for WarningKind
impl Clone for WarningKind
Source§fn clone(&self) -> WarningKind
fn clone(&self) -> WarningKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for WarningKind
Source§impl Debug for WarningKind
impl Debug for WarningKind
Source§impl<'de> Deserialize<'de> for WarningKind
impl<'de> Deserialize<'de> for WarningKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for WarningKind
Source§impl PartialEq for WarningKind
impl PartialEq for WarningKind
Source§fn eq(&self, other: &WarningKind) -> bool
fn eq(&self, other: &WarningKind) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for WarningKind
impl Serialize for WarningKind
impl StructuralPartialEq for WarningKind
Auto Trait Implementations§
impl Freeze for WarningKind
impl RefUnwindSafe for WarningKind
impl Send for WarningKind
impl Sync for WarningKind
impl Unpin for WarningKind
impl UnsafeUnpin for WarningKind
impl UnwindSafe for WarningKind
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.