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]
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]
&self,
tr: Transform,
flatness: Scalar,
close: bool
) -> impl Iterator<Item = Line> + '_
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 Extend<SubPath> for Path
[src]
impl Extend<SubPath> for Path
[src]fn extend<T: IntoIterator<Item = SubPath>>(&mut self, iter: T)
[src]
pub fn extend_one(&mut self, item: A)
[src]
pub fn extend_reserve(&mut self, additional: usize)
[src]
impl StructuralPartialEq for SubPath
[src]
impl StructuralPartialEq for SubPath
[src]Auto Trait Implementations
impl RefUnwindSafe for SubPath
impl RefUnwindSafe for SubPath
impl UnwindSafe for SubPath
impl UnwindSafe for SubPath