pub struct OrigamiModel { /* private fields */ }Expand description
A compact origami model summary.
Implementations§
Source§impl OrigamiModel
impl OrigamiModel
Sourcepub const fn new(crease_count: usize, face_count: usize) -> Option<OrigamiModel>
pub const fn new(crease_count: usize, face_count: usize) -> Option<OrigamiModel>
Creates an origami model summary.
Sourcepub const fn crease_count(self) -> usize
pub const fn crease_count(self) -> usize
Returns the crease count.
Sourcepub const fn face_count(self) -> usize
pub const fn face_count(self) -> usize
Returns the face count.
Trait Implementations§
Source§impl Clone for OrigamiModel
impl Clone for OrigamiModel
Source§fn clone(&self) -> OrigamiModel
fn clone(&self) -> OrigamiModel
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 OrigamiModel
impl Debug for OrigamiModel
Source§impl PartialEq for OrigamiModel
impl PartialEq for OrigamiModel
Source§fn eq(&self, other: &OrigamiModel) -> bool
fn eq(&self, other: &OrigamiModel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for OrigamiModel
impl Eq for OrigamiModel
impl StructuralPartialEq for OrigamiModel
Auto Trait Implementations§
impl Freeze for OrigamiModel
impl RefUnwindSafe for OrigamiModel
impl Send for OrigamiModel
impl Sync for OrigamiModel
impl Unpin for OrigamiModel
impl UnsafeUnpin for OrigamiModel
impl UnwindSafe for OrigamiModel
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