Trait rust_helpers::Conv

source ·
pub trait Conv: Sized {
    // Provided method
    fn conv<T>(self) -> T
       where Self: Into<T> { ... }
}
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>,

Converts self into T using Into<T>.

§Examples
use tap::conv::Conv;

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

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> Conv for T