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
sourceimpl LinePath
impl LinePath
sourcepub fn commands(&self) -> Commands<'_>ⓘNotable traits for Commands<'a>impl<'a> Iterator for Commands<'a> type Item = LinePathCommand;
pub fn commands(&self) -> Commands<'_>ⓘNotable traits for Commands<'a>impl<'a> Iterator for Commands<'a> type Item = LinePathCommand;
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
sourceimpl ExtendFromInternalIterator<LinePathCommand> for LinePath
impl ExtendFromInternalIterator<LinePathCommand> for LinePath
sourcefn 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
.sourceimpl FromInternalIterator<LinePathCommand> for LinePath
impl FromInternalIterator<LinePathCommand> for LinePath
sourcefn 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 moresourceimpl 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 RefUnwindSafe for LinePath
impl Send for LinePath
impl Sync for LinePath
impl Unpin for LinePath
impl UnwindSafe for LinePath
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more