pub struct SchlafliSymbol { /* private fields */ }Expand description
A Schlafli symbol represented by its numeric entries.
Implementations§
Source§impl SchlafliSymbol
impl SchlafliSymbol
Sourcepub fn new(entries: Vec<usize>) -> Option<SchlafliSymbol>
pub fn new(entries: Vec<usize>) -> Option<SchlafliSymbol>
Creates a symbol from positive entries.
Sourcepub fn polygon(p: usize) -> Option<SchlafliSymbol>
pub fn polygon(p: usize) -> Option<SchlafliSymbol>
Creates a regular polygon symbol {p}.
Sourcepub fn polyhedron(p: usize, q: usize) -> Option<SchlafliSymbol>
pub fn polyhedron(p: usize, q: usize) -> Option<SchlafliSymbol>
Creates a regular polyhedron symbol {p, q}.
Sourcepub fn polychoron(p: usize, q: usize, r: usize) -> Option<SchlafliSymbol>
pub fn polychoron(p: usize, q: usize, r: usize) -> Option<SchlafliSymbol>
Creates a regular polychoron symbol {p, q, r}.
Trait Implementations§
Source§impl Clone for SchlafliSymbol
impl Clone for SchlafliSymbol
Source§fn clone(&self) -> SchlafliSymbol
fn clone(&self) -> SchlafliSymbol
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SchlafliSymbol
impl Debug for SchlafliSymbol
Source§impl Display for SchlafliSymbol
impl Display for SchlafliSymbol
Source§impl PartialEq for SchlafliSymbol
impl PartialEq for SchlafliSymbol
Source§fn eq(&self, other: &SchlafliSymbol) -> bool
fn eq(&self, other: &SchlafliSymbol) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SchlafliSymbol
impl StructuralPartialEq for SchlafliSymbol
Auto Trait Implementations§
impl Freeze for SchlafliSymbol
impl RefUnwindSafe for SchlafliSymbol
impl Send for SchlafliSymbol
impl Sync for SchlafliSymbol
impl Unpin for SchlafliSymbol
impl UnsafeUnpin for SchlafliSymbol
impl UnwindSafe for SchlafliSymbol
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