pub struct PolyhedralNet { /* private fields */ }Expand description
A polyhedral net descriptor.
Implementations§
Source§impl PolyhedralNet
impl PolyhedralNet
Sourcepub 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.
Sourcepub const fn face_count(&self) -> usize
pub const fn face_count(&self) -> usize
Returns the face count.
Sourcepub fn adjacency_count(&self) -> usize
pub fn adjacency_count(&self) -> usize
Returns the adjacency count.
Trait Implementations§
Source§impl Clone for PolyhedralNet
impl Clone for PolyhedralNet
Source§fn clone(&self) -> PolyhedralNet
fn clone(&self) -> PolyhedralNet
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 PolyhedralNet
impl Debug for PolyhedralNet
Source§impl PartialEq for PolyhedralNet
impl PartialEq for PolyhedralNet
Source§fn eq(&self, other: &PolyhedralNet) -> bool
fn eq(&self, other: &PolyhedralNet) -> bool
Tests for
self and other values to be equal, and is used by ==.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