Listing 3.7. Using the newtype pattern to distinguish URLs from ordinary strings (ch3-newtype-pattern.rs). #[derive(PartialEq)] #1 struct Hostname(String); ...
確定! 回上一頁