[−][src]Enum wasm_svg_graphics::figures::sub_path::SubPath
Variants
(Control point 1, Control point 2, End point)
Line(Point)
(End Point)
Methods
impl SubPath
[src]
pub fn new_line(end_point: Point) -> SubPath
[src]
Creates new line with ending point at 'end_point'
pub fn new_bezier_curve(
control_point1: Point,
control_point2: Point,
end_point: Point
) -> SubPath
[src]
control_point1: Point,
control_point2: Point,
end_point: Point
) -> SubPath
Creates new bezier curve with control points 1 and 2 and ending point at 'end_point'
pub fn to_d_string(&self, translation: Point) -> String
[src]
Returns its contribution to the d attribute
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SubPath
impl Send for SubPath
impl Sync for SubPath
impl Unpin for SubPath
impl UnwindSafe for SubPath
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, 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>,