Struct PolyhedralNet
pub struct PolyhedralNet { /* private fields */ }Expand description
A polyhedral net descriptor.
Implementations§
§impl PolyhedralNet
impl PolyhedralNet
pub fn new(face_count: usize, edges: Vec<NetEdge>) -> Option<PolyhedralNet>
pub fn new(face_count: usize, edges: Vec<NetEdge>) -> Option<PolyhedralNet>
Creates a polyhedral net with at least one face.
pub const fn face_count(&self) -> usize
pub const fn face_count(&self) -> usize
Returns the face count.
pub fn adjacency_count(&self) -> usize
pub fn adjacency_count(&self) -> usize
Returns the adjacency count.
Trait Implementations§
§impl Clone for PolyhedralNet
impl Clone for PolyhedralNet
§fn clone(&self) -> PolyhedralNet
fn clone(&self) -> PolyhedralNet
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 PolyhedralNet
impl Debug for PolyhedralNet
§impl PartialEq for PolyhedralNet
impl PartialEq for PolyhedralNet
impl Eq for PolyhedralNet
impl StructuralPartialEq for PolyhedralNet
Auto Trait Implementations§
impl Freeze for PolyhedralNet
impl RefUnwindSafe for PolyhedralNet
impl Send for PolyhedralNet
impl Sync for PolyhedralNet
impl Unpin for PolyhedralNet
impl UnsafeUnpin for PolyhedralNet
impl UnwindSafe for PolyhedralNet
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