Skip to main content

IntoExt

Trait IntoExt 

Source
pub trait IntoExt {
    // Provided method
    fn into_<T>(self) -> T
       where Self: Into<T> { ... }
}
Expand description

This trait exposes another function named into, that can take a generic argument, making it nicer to use in pipe-lines.

§Example

use functionality::IntoExt;
let str = "hello";
// You can't do this with `into`!
let string = str.into_::<String>();
// You'd have to use `String::from(str)`

Provided Methods§

Source

fn into_<T>(self) -> T
where Self: Into<T>,

Implementors§

Source§

impl<T> IntoExt for T