std::convert

This module is used for the conversion between types.

When writing a library, implement From<T> and TryFrom<T> instead of Into<T> and TryInto<T> as the From forms provide greater flexibility.
  • ImplementationsAs* (reference-to-reference conversions), Into (consume the value in the conversion), From (useful for value and reference conversion), TryFrom, and TryInto (similar to From and Into, allows for failure) 
  • Structs, Traits, and EnumsTraits AsMutAsRefFrom, and Into
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset