From and Into

    is automatically implemented when From is implemented:

    1. let s: String = "hello".into();
    2. let one: i16 = true.into();
    3. }
    • That’s why it is common to only implement From, as your type will get implementation too.