Struct SchlafliSymbol
pub struct SchlafliSymbol { /* private fields */ }Expand description
A Schlafli symbol represented by its numeric entries.
Implementations§
§impl SchlafliSymbol
impl SchlafliSymbol
pub fn new(entries: Vec<usize>) -> Option<SchlafliSymbol>
pub fn new(entries: Vec<usize>) -> Option<SchlafliSymbol>
Creates a symbol from positive entries.
pub fn polygon(p: usize) -> Option<SchlafliSymbol>
pub fn polygon(p: usize) -> Option<SchlafliSymbol>
Creates a regular polygon symbol {p}.
pub fn polyhedron(p: usize, q: usize) -> Option<SchlafliSymbol>
pub fn polyhedron(p: usize, q: usize) -> Option<SchlafliSymbol>
Creates a regular polyhedron symbol {p, q}.
pub 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§
§impl Clone for SchlafliSymbol
impl Clone for SchlafliSymbol
§fn clone(&self) -> SchlafliSymbol
fn clone(&self) -> SchlafliSymbol
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 SchlafliSymbol
impl Debug for SchlafliSymbol
§impl Display for SchlafliSymbol
impl Display for SchlafliSymbol
§impl PartialEq for SchlafliSymbol
impl PartialEq for SchlafliSymbol
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