pub struct Turtle { /* private fields */ }Implementations§
Source§impl Turtle
impl Turtle
pub fn new() -> Turtle
pub fn forward(&mut self, dist: f64) -> &mut Self
pub fn goto(&mut self, x: f64, y: f64) -> &mut Self
pub fn right(&mut self, angle: f64) -> &mut Self
pub fn left(&mut self, angle: f64) -> &mut Self
pub fn pen_up(&mut self) -> &mut Self
pub fn pen_down(&mut self) -> &mut Self
pub fn set_color(&mut self, color: Color) -> &mut Self
pub fn set_pen_width(&mut self, width: f64) -> &mut Self
pub fn shape<F>( &mut self, radius: f64, segments: usize, deformation: F, ) -> &mut Self
pub fn circle(&mut self, radius: f64) -> &mut Self
pub fn square(&mut self, size: f64) -> &mut Self
pub fn triangle(&mut self, size: f64) -> &mut Self
pub fn star(&mut self, size: f64, branch: usize) -> &mut Self
pub fn save_svg(&self, name: &str) -> Result<()>
Auto Trait Implementations§
impl Freeze for Turtle
impl RefUnwindSafe for Turtle
impl Send for Turtle
impl Sync for Turtle
impl Unpin for Turtle
impl UnwindSafe for Turtle
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