pub enum SphereConstructionError {
NegativeRadius,
NullNormal,
}Expand description
Error returned when a Sphere cannot be constructed from the given
inputs.
Variants§
NegativeRadius
The requested radius is negative.
NullNormal
The main axis direction has zero length. Unreachable through
Sphere::new or Sphere::from_frame (both build the frame from
already-unit directions); kept for parity with sibling surface
error enums and future direction-taking constructors.
Trait Implementations§
Source§impl Clone for SphereConstructionError
impl Clone for SphereConstructionError
impl Copy for SphereConstructionError
Source§impl Debug for SphereConstructionError
impl Debug for SphereConstructionError
Source§impl Display for SphereConstructionError
impl Display for SphereConstructionError
impl Eq for SphereConstructionError
Source§impl Error for SphereConstructionError
impl Error for SphereConstructionError
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 SphereConstructionError
impl PartialEq for SphereConstructionError
impl StructuralPartialEq for SphereConstructionError
Auto Trait Implementations§
impl Freeze for SphereConstructionError
impl RefUnwindSafe for SphereConstructionError
impl Send for SphereConstructionError
impl Sync for SphereConstructionError
impl Unpin for SphereConstructionError
impl UnsafeUnpin for SphereConstructionError
impl UnwindSafe for SphereConstructionError
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