pub struct Piece {
pub curve: NurbCurve2D,
pub center: Option<Vector2>,
pub name: String,
}Expand description
A curve of a chain, from where the previous one ends, named for what it was made from.
Fields§
§curve: NurbCurve2D§center: Option<Vector2>The centre of the circle an arc lies on; none for a line or any other curve.
name: StringTrait Implementations§
Auto Trait Implementations§
impl Freeze for Piece
impl RefUnwindSafe for Piece
impl Send for Piece
impl Sync for Piece
impl Unpin for Piece
impl UnsafeUnpin for Piece
impl UnwindSafe for Piece
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