tap

Trait Conv

Source
pub trait Conv
where Self: Sized,
{ // Provided method fn conv<T>(self) -> T where Self: Into<T>, T: Sized { ... } }
Expand description

Wraps Into::<T>::into as a method that can be placed in pipelines.

Provided Methods§

Source

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

Converts self into T using Into<T>.

§Examples
use tap::conv::Conv;

let len = "Saluton, mondo!"
  .conv::<String>()
  .len();

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> Conv for T