pub struct Path { /* private fields */ }Expand description
A vector path, built by chaining: Path::new().move_to(0.0, 0.0).line_to(10.0, 0.0).close().
Implementations§
Source§impl Path
impl Path
pub fn new() -> Path
pub fn move_to(self, x: f32, y: f32) -> Path
pub fn line_to(self, x: f32, y: f32) -> Path
pub fn curve_to(self, c1: Point, c2: Point, to: Point) -> Path
pub fn close(self) -> Path
Sourcepub fn polygon(points: impl IntoIterator<Item = Point>) -> Path
pub fn polygon(points: impl IntoIterator<Item = Point>) -> Path
A closed polygon through points.
pub fn elements(&self) -> &[PathElement]
Trait Implementations§
impl StructuralPartialEq for Path
Auto Trait Implementations§
impl Forget for Path
impl Freeze for Path
impl Move for Path
impl RefUnwindSafe for Path
impl Send for Pathwhere
RawVecInner: Send,
impl Sync for Pathwhere
RawVecInner: Sync,
impl Unpin for Path
impl UnsafeUnpin for Path
impl UnwindSafe for Pathwhere
RawVecInner: UnwindSafe,
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