Sha256: 64891392e01035823aa3cf2788939b63266cb9b2e5c4cc887d50a908631097bc
Contents?: true
Size: 873 Bytes
Versions: 346
Compression:
Stored size: 873 Bytes
Contents
// The code below is a stub. Just enough to satisfy the compiler. // In order to pass the tests you can add-to or change any of this code. #[derive(PartialEq, Debug)] pub enum Direction { North, East, South, West, } pub struct Robot; impl Robot { #[allow(unused_variables)] pub fn new(x: isize, y: isize, d: Direction) -> Self { unimplemented!() } pub fn turn_right(self) -> Self { unimplemented!() } pub fn turn_left(self) -> Self { unimplemented!() } pub fn advance(self) -> Self { unimplemented!() } #[allow(unused_variables)] pub fn instructions(self, instructions: &str) -> Self { unimplemented!() } pub fn position(&self) -> (isize, isize) { unimplemented!() } pub fn direction(&self) -> &Direction { unimplemented!() } }
Version data entries
346 entries across 346 versions & 1 rubygems