pub struct CurvePath { /* private fields */ }Expand description
Pieces of curves laid end to end, in the order the path runs; see the module documentation.
Implementations§
Source§impl CurvePath
impl CurvePath
Sourcepub fn new(pieces: Vec<PathPiece>) -> CurvePath
pub fn new(pieces: Vec<PathPiece>) -> CurvePath
The path through pieces, in order. Nothing is checked here (see
the module documentation).
Sourcepub fn into_pieces(self) -> Vec<PathPiece>
pub fn into_pieces(self) -> Vec<PathPiece>
The pieces, in order, by value.
Sourcepub fn reversed(self) -> CurvePath
pub fn reversed(self) -> CurvePath
The same path traversed the other way: its pieces in reverse order, each reversed.
Trait Implementations§
Source§impl Extend<PathPiece> for CurvePath
impl Extend<PathPiece> for CurvePath
Source§fn extend<I>(&mut self, pieces: I)where
I: IntoIterator<Item = PathPiece>,
fn extend<I>(&mut self, pieces: I)where
I: IntoIterator<Item = PathPiece>,
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<PathPiece> for CurvePath
impl FromIterator<PathPiece> for CurvePath
impl StructuralPartialEq for CurvePath
Auto Trait Implementations§
impl Freeze for CurvePath
impl RefUnwindSafe for CurvePath
impl Send for CurvePath
impl Sync for CurvePath
impl Unpin for CurvePath
impl UnsafeUnpin for CurvePath
impl UnwindSafe for CurvePath
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more