pub enum CompositeError {
InvalidModulus {
name: String,
value: f64,
},
InvalidGeometry {
index: usize,
detail: String,
},
NoComponents,
ZeroTransformedArea,
InvalidReferenceModulus {
value: f64,
},
NonFiniteModularRatio {
index: usize,
e_component: f64,
e_ref: f64,
},
}Expand description
Errors that can occur during composite section construction or analysis.
Variants§
InvalidModulus
Young’s modulus is zero, negative, NaN, or infinite.
InvalidGeometry
Section geometry is degenerate (zero or near-zero net area).
NoComponents
No components were provided.
ZeroTransformedArea
The transformed section has zero or near-zero net area.
InvalidReferenceModulus
The reference material modulus is invalid.
NonFiniteModularRatio
The modular ratio E_i / E_ref is not finite (overflow).
Trait Implementations§
Source§impl Clone for CompositeError
impl Clone for CompositeError
Source§impl Debug for CompositeError
impl Debug for CompositeError
Source§impl Display for CompositeError
impl Display for CompositeError
Source§impl Error for CompositeError
impl Error for CompositeError
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 CompositeError
impl PartialEq for CompositeError
impl StructuralPartialEq for CompositeError
Auto Trait Implementations§
impl Freeze for CompositeError
impl RefUnwindSafe for CompositeError
impl Send for CompositeError
impl Sync for CompositeError
impl Unpin for CompositeError
impl UnsafeUnpin for CompositeError
impl UnwindSafe for CompositeError
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