Struct Sphere
pub struct Sphere { /* private fields */ }Expand description
A three-dimensional Euclidean sphere represented by radius.
Implementations§
§impl Sphere
impl Sphere
pub fn surface_area(self) -> f64
pub fn surface_area(self) -> f64
Returns the surface area.
Trait Implementations§
impl Copy for Sphere
impl StructuralPartialEq for Sphere
Auto Trait Implementations§
impl Freeze for Sphere
impl RefUnwindSafe for Sphere
impl Send for Sphere
impl Sync for Sphere
impl Unpin for Sphere
impl UnsafeUnpin for Sphere
impl UnwindSafe for Sphere
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