pub struct Path { /* private fields */ }Expand description
An immutable set of contours.
Flattening the curves into polylines (Path::to_contours) is memoized: a
path filled repeatedly with the same transform and tolerance — the common
case for a shape redrawn every frame — reuses the cached polylines instead of
re-flattening and re-allocating them. The cache uses interior mutability, so
a Path is Send but not Sync (single-threaded use, as elsewhere in the
crate); equality and Debug ignore it.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Path
impl !RefUnwindSafe for Path
impl !Sync for Path
impl Send for Path
impl Unpin for Path
impl UnsafeUnpin 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