pub struct Line {
pub points: Vec<(Point, bool)>,
pub is_closed: bool,
}
Fields§
§points: Vec<(Point, bool)>
2D Points for the line
is_closed: bool
Is the line closed or open?
Implementations§
source§impl Line
impl Line
sourcepub fn set_closed(&mut self, is_closed: bool)
pub fn set_closed(&mut self, is_closed: bool)
Sets if the line is closed or not
pub fn into_stream_op(self) -> Vec<Operation>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnwindSafe for Line
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