Enum PlatonicSolid
pub enum PlatonicSolid {
Tetrahedron,
Cube,
Octahedron,
Dodecahedron,
Icosahedron,
}Expand description
The five Platonic solids.
Variants§
Tetrahedron
Four triangular faces.
Cube
Six square faces.
Octahedron
Eight triangular faces.
Dodecahedron
Twelve pentagonal faces.
Icosahedron
Twenty triangular faces.
Implementations§
§impl PlatonicSolid
impl PlatonicSolid
pub const fn face_count(self) -> usize
pub const fn face_count(self) -> usize
Returns the number of faces.
pub const fn edge_count(self) -> usize
pub const fn edge_count(self) -> usize
Returns the number of edges.
pub const fn vertex_count(self) -> usize
pub const fn vertex_count(self) -> usize
Returns the number of vertices.
pub fn schlafli_symbol(self) -> SchlafliSymbol
pub fn schlafli_symbol(self) -> SchlafliSymbol
Returns the Schlafli symbol.
Trait Implementations§
§impl Clone for PlatonicSolid
impl Clone for PlatonicSolid
§fn clone(&self) -> PlatonicSolid
fn clone(&self) -> PlatonicSolid
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for PlatonicSolid
impl Debug for PlatonicSolid
§impl PartialEq for PlatonicSolid
impl PartialEq for PlatonicSolid
impl Copy for PlatonicSolid
impl Eq for PlatonicSolid
impl StructuralPartialEq for PlatonicSolid
Auto Trait Implementations§
impl Freeze for PlatonicSolid
impl RefUnwindSafe for PlatonicSolid
impl Send for PlatonicSolid
impl Sync for PlatonicSolid
impl Unpin for PlatonicSolid
impl UnsafeUnpin for PlatonicSolid
impl UnwindSafe for PlatonicSolid
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