pub struct Path(pub BezPath);Tuple Fields§
§0: BezPathImplementations§
Source§impl Path
 
impl Path
pub fn new() -> Self
pub fn from_svg(s: &str) -> Self
pub fn transform(&mut self, transform: Transform2D<f64>)
Sourcepub fn ensure_there_is_a_subpath(&mut self, x: f64, y: f64)
 
pub fn ensure_there_is_a_subpath(&mut self, x: f64, y: f64)
Sourcepub fn bezier_curve_to(
    &mut self,
    cp1x: f64,
    cp1y: f64,
    cp2x: f64,
    cp2y: f64,
    x: f64,
    y: f64,
)
 
pub fn bezier_curve_to( &mut self, cp1x: f64, cp1y: f64, cp2x: f64, cp2y: f64, x: f64, y: f64, )
Sourcepub fn arc_to(
    &mut self,
    x1: f64,
    y1: f64,
    x2: f64,
    y2: f64,
    radius: f64,
) -> Result<(), IndexSizeError>
 
pub fn arc_to( &mut self, x1: f64, y1: f64, x2: f64, y2: f64, radius: f64, ) -> Result<(), IndexSizeError>
pub fn last_point(&mut self) -> Option<Point>
Sourcepub fn arc(
    &mut self,
    x: f64,
    y: f64,
    radius: f64,
    start_angle: f64,
    end_angle: f64,
    counterclockwise: bool,
) -> Result<(), IndexSizeError>
 
pub fn arc( &mut self, x: f64, y: f64, radius: f64, start_angle: f64, end_angle: f64, counterclockwise: bool, ) -> Result<(), IndexSizeError>
Sourcepub fn ellipse(
    &mut self,
    x: f64,
    y: f64,
    radius_x: f64,
    radius_y: f64,
    rotation_angle: f64,
    start_angle: f64,
    end_angle: f64,
    counterclockwise: bool,
) -> Result<(), IndexSizeError>
 
pub fn ellipse( &mut self, x: f64, y: f64, radius_x: f64, radius_y: f64, rotation_angle: f64, start_angle: f64, end_angle: f64, counterclockwise: bool, ) -> Result<(), IndexSizeError>
pub fn bounding_box(&self) -> Rect<f64>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Path
 
impl<'de> Deserialize<'de> for Path
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl MallocSizeOf for Path
 
impl MallocSizeOf for Path
Source§fn size_of(&self, _ops: &mut MallocSizeOfOps) -> usize
 
fn size_of(&self, _ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
Auto Trait Implementations§
impl Freeze for Path
impl RefUnwindSafe for Path
impl Send for Path
impl Sync for Path
impl Unpin for Path
impl UnwindSafe for Path
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> Instrument for T
 
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> MaybeBoxed<Box<T>> for T
 
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
 
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
 
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
 
fn maybe_boxed(self) -> T
Convert