pub struct Path {
pub raw: Path,
}Expand description
An immutable set of points that may or may not be connected.
A single Path can represent different kinds of 2D shapes!
Fields§
§raw: PathImplementations§
Source§impl Path
impl Path
pub fn builder() -> PathBuilder
Sourcepub fn line(from: Point, to: Point) -> Self
pub fn line(from: Point, to: Point) -> Self
Creates a new Path representing a line segment given its starting
and end points.
Sourcepub fn rectangle(top_left: Point, size: Size) -> Self
pub fn rectangle(top_left: Point, size: Size) -> Self
Creates a new Path representing a rectangle given its top-left
corner coordinate and its Size.
Trait Implementations§
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