fn main() { use std::string::String; struct S{ name: String, } impl S { fn new(name:&str)->Self{ S{ name:name.to_string() } } } }