fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self {
            Node::Unringed => writeln!(f, "o"),
            Node::Ringed(x) => writeln!(f, "x({})", x),
            Node::Snub(s) => writeln!(f, "s({})", s),
        }
    }
/// Prints the value that a node contains.
Prints the value that a node contains.
Prints the value that a node contains .
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self {
            Node::Unringed => writeln!(f, "o"),
            Node::Ringed(x) => writeln!(f, "x({})", x),
            Node::Snub(s) => writeln!(f, "s({})", s),
        }
    }
fn fmt ( & self , f : & mut std :: fmt :: Formatter < ' _ > ) -> std :: fmt :: Result { match self { Node :: Unringed => writeln ! ( f " " ) , Node :: Ringed ( x ) => writeln ! ( f " " x ) , Node :: Snub ( s ) => writeln ! ( f " " s ) , } }
Prints the value that a node contains.
Prints the value that a node contains .
&self
f
&mut std::fmt::Formatter<'_>
&self
f
&mut std::fmt::Formatter<'_>