- from
- into
Converting between types: The From and Into traits
You have probably seen code using ::from() or .into() in some code. These are methods of the From and Into traits. You always implement only one of them.
You have probably seen code using ::from() or .into() in some code. These are methods of the From and Into traits. You always implement only one of them.