fn perform(&mut self, step: TurtleStep) {
        match step {
            TurtleStep::Forward(dist) => self.forward(dist),
            TurtleStep::SetPos(point) => self.set_pos(point),
            TurtleStep::SetRad(angle) => self.set_rad(angle),
            TurtleStep::TurnRad(angle) => self.turn_rad(angle),
            TurtleStep::Down => self.down(),
            TurtleStep::Up => self.up(),
        }
    }
/// Perform the action represented by `step`.
Perform the action represented by `step`.
Perform the action represented by ` step ` .
fn perform(&mut self, step: TurtleStep) {
        match step {
            TurtleStep::Forward(dist) => self.forward(dist),
            TurtleStep::SetPos(point) => self.set_pos(point),
            TurtleStep::SetRad(angle) => self.set_rad(angle),
            TurtleStep::TurnRad(angle) => self.turn_rad(angle),
            TurtleStep::Down => self.down(),
            TurtleStep::Up => self.up(),
        }
    }
fn perform ( & mut self , step : TurtleStep ) { match step { TurtleStep :: Forward ( dist ) => self . forward ( dist ) , TurtleStep :: SetPos ( point ) => self . set_pos ( point ) , TurtleStep :: SetRad ( angle ) => self . set_rad ( angle ) , TurtleStep :: TurnRad ( angle ) => self . turn_rad ( angle ) , TurtleStep :: Down => self . down ( ) , TurtleStep :: Up => self . up ( ) , } }
Perform the action represented by `step`.
Perform the action represented by ` step ` .
&mut self
step
TurtleStep