Lyricdev
GitHub

interface Into

pub interface Into<T>

Converts a value out of the type: let cm: Centimeters = m.into();.

The expected type chooses the target. The blanket conformance below gives it wherever a From is; a type's own Into<X> is allowed only where no X :: [From<…>] of the type gives the same.

Methods

fn into(): T