pub struct PathD(/* private fields */);Implementations§
Source§impl PathD
impl PathD
pub fn new(points: &Vec<PointD>) -> Self
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn get_point(&self, index: usize) -> PointD
pub fn add_point(&mut self, point: PointD)
pub fn translate(&self, dx: f64, dy: f64) -> Self
pub fn scale(&self, sx: f64, sy: f64) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PathD
impl RefUnwindSafe for PathD
impl Send for PathD
impl Sync for PathD
impl Unpin for PathD
impl UnwindSafe for PathD
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