#[non_exhaustive]pub enum CatalogProblem {
Kind {
found: &'static str,
builder: &'static str,
},
UndefinedMaterial(String),
NoWall,
Shape,
NoVolume,
}Expand description
Why a catalog part (hpr_io::orc::Part) can’t be made into a builder part.
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.
Kind
A part of a kind the builder’s part isn’t, such as a body tube given to
Nose::from_catalog.
UndefinedMaterial(String)
A material its file names but doesn’t define, so it has no density.
NoWall
A nose cone or transition neither filled nor given a wall thickness.
Shape
A nose cone’s or transition’s shape the builder doesn’t know.
NoVolume
A part that states its mass but whose sizes give it no volume to hold it, so no density gives it that mass.
Trait Implementations§
Source§impl Clone for CatalogProblem
impl Clone for CatalogProblem
Source§fn clone(&self) -> CatalogProblem
fn clone(&self) -> CatalogProblem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CatalogProblem
impl Debug for CatalogProblem
Source§impl Display for CatalogProblem
impl Display for CatalogProblem
impl Eq for CatalogProblem
Source§impl Error for CatalogProblem
impl Error for CatalogProblem
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for CatalogProblem
impl PartialEq for CatalogProblem
Source§fn eq(&self, other: &CatalogProblem) -> bool
fn eq(&self, other: &CatalogProblem) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CatalogProblem
Auto Trait Implementations§
impl Freeze for CatalogProblem
impl RefUnwindSafe for CatalogProblem
impl Send for CatalogProblem
impl Sync for CatalogProblem
impl Unpin for CatalogProblem
impl UnsafeUnpin for CatalogProblem
impl UnwindSafe for CatalogProblem
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,
§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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more