pub enum TorusConstructionError {
NegativeRadius,
NullNormal,
NonFinite,
}Expand description
Error returned when a Torus cannot be constructed from the given
inputs.
Variants§
NegativeRadius
Either the major or the minor radius is negative. Unlike some analytic surfaces, geomcore deliberately rejects a negative major radius too (rather than accepting it as geometrically meaningless but harmless): a negative major radius has no consistent parametric meaning here, so it is treated the same as a negative minor radius.
NullNormal
The main axis direction has zero length.
NonFinite
An input coordinate, radius, or angle is NaN or infinite.
Trait Implementations§
Source§impl Clone for TorusConstructionError
impl Clone for TorusConstructionError
impl Copy for TorusConstructionError
Source§impl Debug for TorusConstructionError
impl Debug for TorusConstructionError
Source§impl Display for TorusConstructionError
impl Display for TorusConstructionError
impl Eq for TorusConstructionError
Source§impl Error for TorusConstructionError
impl Error for TorusConstructionError
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 TorusConstructionError
impl PartialEq for TorusConstructionError
impl StructuralPartialEq for TorusConstructionError
Auto Trait Implementations§
impl Freeze for TorusConstructionError
impl RefUnwindSafe for TorusConstructionError
impl Send for TorusConstructionError
impl Sync for TorusConstructionError
impl Unpin for TorusConstructionError
impl UnsafeUnpin for TorusConstructionError
impl UnwindSafe for TorusConstructionError
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