Struct OrigamiModel
pub struct OrigamiModel { /* private fields */ }Expand description
A compact origami model summary.
Implementations§
§impl OrigamiModel
impl OrigamiModel
pub 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.
pub const fn crease_count(self) -> usize
pub const fn crease_count(self) -> usize
Returns the crease count.
pub const fn face_count(self) -> usize
pub const fn face_count(self) -> usize
Returns the face count.
Trait Implementations§
§impl Clone for OrigamiModel
impl Clone for OrigamiModel
§fn clone(&self) -> OrigamiModel
fn clone(&self) -> OrigamiModel
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 OrigamiModel
impl Debug for OrigamiModel
§impl PartialEq for OrigamiModel
impl PartialEq for OrigamiModel
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