From — convert into type. Into — convert from type.
From:
Into:
1// Implement From2impl From<&str> for MyString {3 fn from(s: &str) -> Self {4 MyString(s.to_string())5 }6}78// Use Into9let s: MyString = "hello".into();10let s: MyString = MyString::from("hello");
Key: Implement From, use Into.