pub(crate) fn try_from(x: &str) -> Option<Cell> {
        match x.into() {
            "1" => Some(Cell::BottomLeft),
            "2" => Some(Cell::BottomCentre),
            "3" => Some(Cell::BottomRight),
            "4" => Some(Cell::CentreLeft),
            "5" => Some(Cell::Centre),
            "6" => Some(Cell::CentreRight),
            "7" => Some(Cell::TopLeft),
            "8" => Some(Cell::TopCentre),
            "9" => Some(Cell::TopRight),
            _ => None,
        }
    }
/// Attempts to convert the input to a [Cell]. Returns [None] if the input is not a valid digit.
Attempts to convert the input to a [Cell]. Returns [None] if the input is not a valid digit.
Attempts to convert the input to a [ Cell ] . Returns [ None ] if the input is not a valid digit .
pub(crate) fn try_from(x: &str) -> Option<Cell> {
        match x.into() {
            "1" => Some(Cell::BottomLeft),
            "2" => Some(Cell::BottomCentre),
            "3" => Some(Cell::BottomRight),
            "4" => Some(Cell::CentreLeft),
            "5" => Some(Cell::Centre),
            "6" => Some(Cell::CentreRight),
            "7" => Some(Cell::TopLeft),
            "8" => Some(Cell::TopCentre),
            "9" => Some(Cell::TopRight),
            _ => None,
        }
    }
pub ( crate ) fn try_from ( x : & str ) -> Option < Cell > { match x . into ( ) { " " => Some ( Cell :: BottomLeft ) , " " => Some ( Cell :: BottomCentre ) , " " => Some ( Cell :: BottomRight ) , " " => Some ( Cell :: CentreLeft ) , " " => Some ( Cell :: Centre ) , " " => Some ( Cell :: CentreRight ) , " " => Some ( Cell :: TopLeft ) , " " => Some ( Cell :: TopCentre ) , " " => Some ( Cell :: TopRight ) , _ => None , } }
Attempts to convert the input to a [Cell].
Attempts to convert the input to a [ Cell ] .
x
&str