pub struct LinePath { /* private fields */ }
Expand description
A sequence of commands that defines a set of contours, each of which consists of a sequence of line segments. Each contour is either open or closed.
Implementations§
Source§impl LinePath
impl LinePath
Sourcepub fn commands(&self) -> Commands<'_> ⓘ
pub fn commands(&self) -> Commands<'_> ⓘ
Returns an iterator over the commands that make up self
.
Sourcepub fn points_mut(&mut self) -> &mut [Point]
pub fn points_mut(&mut self) -> &mut [Point]
Returns a mutable slice of the points that make up self
.
Trait Implementations§
Source§impl ExtendFromInternalIterator<LinePathCommand> for LinePath
impl ExtendFromInternalIterator<LinePathCommand> for LinePath
Source§fn extend_from_internal_iter<I>(&mut self, internal_iter: I)where
I: IntoInternalIterator<Item = LinePathCommand>,
fn extend_from_internal_iter<I>(&mut self, internal_iter: I)where
I: IntoInternalIterator<Item = LinePathCommand>,
Extends
self
with each item of internal_iter
.Source§impl FromInternalIterator<LinePathCommand> for LinePath
impl FromInternalIterator<LinePathCommand> for LinePath
Source§fn from_internal_iter<I>(internal_iter: I) -> Selfwhere
I: IntoInternalIterator<Item = LinePathCommand>,
fn from_internal_iter<I>(internal_iter: I) -> Selfwhere
I: IntoInternalIterator<Item = LinePathCommand>,
Creates
Self
from an internal iterator. Read moreSource§impl Transform for LinePath
impl Transform for LinePath
fn transform<T>(self, t: &T) -> LinePathwhere
T: Transformation,
fn transform_mut<T>(&mut self, t: &T)where
T: Transformation,
impl StructuralPartialEq for LinePath
Auto Trait Implementations§
impl Freeze for LinePath
impl RefUnwindSafe for LinePath
impl Send for LinePath
impl Sync for LinePath
impl Unpin for LinePath
impl UnwindSafe for LinePath
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