[][src]Struct usvg::SubPathData

pub struct SubPathData<'a>(pub &'a [PathSegment]);

A reference to a PathData subpath.

Implementations

impl<'a> SubPathData<'a>[src]

pub fn bbox(&self) -> Option<Rect>[src]

Calculates path's bounding box.

This operation is expensive.

pub fn bbox_with_transform(
    &self,
    ts: Transform,
    stroke: Option<&Stroke>
) -> Option<Rect>
[src]

Calculates path's bounding box with a specified transform.

This operation is expensive.

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

Checks that path has a bounding box.

This operation is expensive.

pub fn length(&self) -> f64[src]

Calculates path's length.

This operation is expensive.

Trait Implementations

impl<'a> Clone for SubPathData<'a>[src]

impl<'a> Copy for SubPathData<'a>[src]

impl<'a> Debug for SubPathData<'a>[src]

impl<'_> Deref for SubPathData<'_>[src]

type Target = [PathSegment]

The resulting type after dereferencing.

Auto Trait Implementations

impl<'a> RefUnwindSafe for SubPathData<'a>

impl<'a> Send for SubPathData<'a>

impl<'a> Sync for SubPathData<'a>

impl<'a> Unpin for SubPathData<'a>

impl<'a> UnwindSafe for SubPathData<'a>

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,