Enum ochre::PathCmd [−][src]
A single command in a 2-dimensional vector path.
Variants
Move(Vec2)
Line(Vec2)
Implementations
impl PathCmd
[src]
pub fn transform(&self, transform: Transform) -> PathCmd
[src]
Applies the given transform to the path command.
pub fn flatten(
&self,
last: Vec2,
tolerance: f32,
mut callback: impl FnMut(PathCmd)
)
[src]
&self,
last: Vec2,
tolerance: f32,
mut callback: impl FnMut(PathCmd)
)
Computes a piecewise-linear approximation of the given path command to within the supplied parametric error tolerance.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PathCmd
[src]
impl Send for PathCmd
[src]
impl Sync for PathCmd
[src]
impl Unpin for PathCmd
[src]
impl UnwindSafe for PathCmd
[src]
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,