[−][src]Struct usvg::SubPathData
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]
&self,
ts: Transform,
stroke: Option<&Stroke>
) -> Option<Rect>
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]
fn clone(&self) -> SubPathData<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Copy for SubPathData<'a>
[src]
impl<'a> Debug for SubPathData<'a>
[src]
impl<'_> Deref for SubPathData<'_>
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,