Skip to main content
A value-to-value conversion that consumes the input value. Note: This trait must not fail. If the conversion can fail, use TryInto.

Signature

Generic Implementations

  • Into is reflexive, which means that Into is implemented

Examples

Converting from RGB components to a packed color value:

Trait functions

into

Converts the input type T into the output type S.

Signature

Examples