#[repr(C, u8)]pub enum SvgPathElement {
Line(SvgLine),
QuadraticCurve(SvgQuadraticCurve),
CubicCurve(SvgCubicCurve),
}
Variants§
Implementations§
Source§impl SvgPathElement
impl SvgPathElement
pub fn set_last(&mut self, point: SvgPoint)
pub fn set_first(&mut self, point: SvgPoint)
pub fn reverse(&mut self)
pub fn get_start(&self) -> SvgPoint
pub fn get_end(&self) -> SvgPoint
pub fn get_bounds(&self) -> SvgRect
pub fn get_length(&self) -> f64
pub fn get_t_at_offset(&self, offset: f64) -> f64
pub fn get_tangent_vector_at_t(&self, t: f64) -> SvgVector
pub fn get_x_at_t(&self, t: f64) -> f64
pub fn get_y_at_t(&self, t: f64) -> f64
Trait Implementations§
Source§impl Clone for SvgPathElement
impl Clone for SvgPathElement
Source§fn clone(&self) -> SvgPathElement
fn clone(&self) -> SvgPathElement
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SvgPathElement
impl Debug for SvgPathElement
Source§impl FromIterator<SvgPathElement> for SvgPathElementVec
impl FromIterator<SvgPathElement> for SvgPathElementVec
Source§fn from_iter<T>(iter: T) -> SvgPathElementVecwhere
T: IntoIterator<Item = SvgPathElement>,
fn from_iter<T>(iter: T) -> SvgPathElementVecwhere
T: IntoIterator<Item = SvgPathElement>,
Creates a value from an iterator. Read more
Source§impl PartialEq for SvgPathElement
impl PartialEq for SvgPathElement
Source§impl PartialOrd for SvgPathElement
impl PartialOrd for SvgPathElement
impl Copy for SvgPathElement
impl StructuralPartialEq for SvgPathElement
Auto Trait Implementations§
impl Freeze for SvgPathElement
impl RefUnwindSafe for SvgPathElement
impl Send for SvgPathElement
impl Sync for SvgPathElement
impl Unpin for SvgPathElement
impl UnwindSafe for SvgPathElement
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
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