1 2 3 4 5 6 7 8 9 10 11 12 13 14
use std::fmt; use std::str::FromStr; use std::string::ToString; use std::fmt::Debug; use std::net::{ IpAddr, Ipv6Addr, Ipv4Addr }; // impl Debug for IpAddr::V4 {} fn main (){ let s = "68"; let n = u8::from_str(s); println!("{:?}", n); }