Enum tagger::PathCommand

source ·
pub enum PathCommand<F> {
Show 19 variants M(F, F), M_(F, F), L(F, F), L_(F, F), H(F), H_(F), V(F), V_(F), C(F, F, F, F, F, F), C_(F, F, F, F, F, F), S(F, F, F, F), S_(F, F, F, F), Q(F, F, F, F), Q_(F, F, F, F), T(F, F), T_(F, F), A(F, F, F, F, F, F, F), A_(F, F, F, F, F, F, F), Z(F),
}
Expand description

Construct and Write a SVG path’s data.

following: w3 spec

Variants§

§

M(F, F)

move to

§

M_(F, F)

relative move to

§

L(F, F)

line to

§

L_(F, F)

relative line to

§

H(F)

horizontal to

§

H_(F)

relative horizontal to

§

V(F)

vertical to

§

V_(F)

relative vertical to

§

C(F, F, F, F, F, F)

curve to

§

C_(F, F, F, F, F, F)

relative curve to

§

S(F, F, F, F)

shorthand curve to

§

S_(F, F, F, F)

relative shorthand curve to

§

Q(F, F, F, F)

quadratic bezier curve to

§

Q_(F, F, F, F)

relative quadratic bezier curve to

§

T(F, F)

shorthand quadratic bezier curve to

§

T_(F, F)

relative shorthand quadratic bezier curve to

§

A(F, F, F, F, F, F, F)

elliptical arc

§

A_(F, F, F, F, F, F, F)

relative elliptical arc

§

Z(F)

close path

Implementations§

source§

impl<F> PathCommand<F>

source

pub fn map<J>(self, func: impl FnMut(F) -> J) -> PathCommand<J>

Auto Trait Implementations§

§

impl<F> RefUnwindSafe for PathCommand<F>where F: RefUnwindSafe,

§

impl<F> Send for PathCommand<F>where F: Send,

§

impl<F> Sync for PathCommand<F>where F: Sync,

§

impl<F> Unpin for PathCommand<F>where F: Unpin,

§

impl<F> UnwindSafe for PathCommand<F>where F: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.