pub struct Crease { /* private fields */ }Expand description
A crease segment in a flat pattern.
Implementations§
Source§impl Crease
impl Crease
Sourcepub const fn new(start: Point2, end: Point2, kind: CreaseKind) -> Self
pub const fn new(start: Point2, end: Point2, kind: CreaseKind) -> Self
Creates a crease.
Sourcepub const fn kind(self) -> CreaseKind
pub const fn kind(self) -> CreaseKind
Returns the crease kind.
Trait Implementations§
impl Copy for Crease
impl StructuralPartialEq for Crease
Auto Trait Implementations§
impl Freeze for Crease
impl RefUnwindSafe for Crease
impl Send for Crease
impl Sync for Crease
impl Unpin for Crease
impl UnsafeUnpin for Crease
impl UnwindSafe for Crease
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