Struct rasterize::SubPath[][src]

pub struct SubPath { /* fields omitted */ }

Non-empty collections of segments where end of each segments conisides with the start of the next one.

Implementations

impl SubPath[src]

pub fn new(segments: Vec<Segment>, closed: bool) -> Option<Self>[src]

pub fn is_closed(&self) -> bool[src]

Whether sub-path is closed or not

pub fn segments(&self) -> &[Segment][src]

pub fn first(&self) -> Segment[src]

First segment in the sub-path

pub fn last(&self) -> Segment[src]

Last segment in the sub-path

pub fn transform(&mut self, tr: Transform)[src]

Apply transformation to the sub-path in place

pub fn flatten(
    &self,
    tr: Transform,
    flatness: Scalar,
    close: bool
) -> impl Iterator<Item = Line> + '_
[src]

pub fn start(&self) -> Point[src]

Start point of the sub-path

pub fn end(&self) -> Point[src]

End point of the sub-path

pub fn bbox(&self, init: Option<BBox>, tr: Transform) -> BBox[src]

Bounding box of the sub-path

pub fn reverse(&self) -> Self[src]

Create new sub-path with reversed direction

Trait Implementations

impl Clone for SubPath[src]

impl Debug for SubPath[src]

impl Extend<SubPath> for Path[src]

impl PartialEq<SubPath> for SubPath[src]

impl StructuralPartialEq for SubPath[src]

Auto Trait Implementations

impl RefUnwindSafe for SubPath

impl Send for SubPath

impl Sync for SubPath

impl Unpin for SubPath

impl UnwindSafe for SubPath

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.