fn from(i: i32) -> Self {
        match i {
            // 0 = North
            0 => Direction4::North,
            // 1 = East
            1 => Direction4::East,
            // 2 = South
            2 => Direction4::South,
            // 3 = West
            3 => Direction4::West,
            // Invalid Direction
            _ => panic!("Invalid direction: {:?}", i)
        }
    }
/// A method that converts an i32 into a Direction
///
/// - @param *i* is an i32 to that is converted into a Direction
///
/// Direction-Int Mapping
/// - 0 -> Direction4::North 
/// - 1 -> Direction4::East
/// - 2 -> Direction4::South
/// - 3 -> Direction4::West
A method that converts an i32 into a Direction
@param *i* is an i32 to that is converted into a Direction


A method that converts an i32 into a Direction @param * i * is an i32 to that is converted into a Direction
fn from(i: i32) -> Self {
        match i {
            // 0 = North
            0 => Direction4::North,
            // 1 = East
            1 => Direction4::East,
            // 2 = South
            2 => Direction4::South,
            // 3 = West
            3 => Direction4::West,
            // Invalid Direction
            _ => panic!("Invalid direction: {:?}", i)
        }
    }
fn from ( i : i32 ) -> Self { match i { // 0 = North 0 => Direction4 :: North , // 1 = East 1 => Direction4 :: East , // 2 = South 2 => Direction4 :: South , // 3 = West 3 => Direction4 :: West , // Invalid Direction _ => panic ! ( " " i ) } }
A method that converts an i32 into a Direction
 @param *i* is an i32 to that is converted into a Direction
A method that converts an i32 into a Direction @param * i * is an i32 to that is converted into a Direction
i
i32
i
i32