pub enum GlassProfileError {
TooFewKnots,
TooManyKnots {
count: usize,
},
NonFiniteKnot {
index: usize,
},
KnotOutOfRange {
index: usize,
},
MissingEndpoints,
PositionsNotIncreasing {
index: usize,
},
CenterHeightMismatch,
InvalidDepth,
InvalidRadialPower,
InvalidAxisCoupling,
}Expand description
Validation failure while constructing a physical glass profile.
Variants§
TooFewKnots
TooManyKnots
NonFiniteKnot
KnotOutOfRange
MissingEndpoints
PositionsNotIncreasing
CenterHeightMismatch
InvalidDepth
InvalidRadialPower
InvalidAxisCoupling
Trait Implementations§
Source§impl Clone for GlassProfileError
impl Clone for GlassProfileError
Source§fn clone(&self) -> GlassProfileError
fn clone(&self) -> GlassProfileError
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 moreimpl Copy for GlassProfileError
Source§impl Debug for GlassProfileError
impl Debug for GlassProfileError
Source§impl Display for GlassProfileError
impl Display for GlassProfileError
Source§impl Error for GlassProfileError
impl Error for GlassProfileError
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 GlassProfileError
impl PartialEq for GlassProfileError
impl StructuralPartialEq for GlassProfileError
Auto Trait Implementations§
impl Freeze for GlassProfileError
impl RefUnwindSafe for GlassProfileError
impl Send for GlassProfileError
impl Sync for GlassProfileError
impl Unpin for GlassProfileError
impl UnsafeUnpin for GlassProfileError
impl UnwindSafe for GlassProfileError
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