use std::fmt; pub enum Animal { Cat(String), Dog, } impl fmt::Display for Animal { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match self ...
確定! 回上一頁