[][src]Trait conv::ValueInto

pub trait ValueInto<Dst> {
    type Err: Error;
    fn value_into(self) -> Result<Dst, Self::Err>;
}

This is the dual of ValueFrom; see that trait for information.

Where possible, prefer using this trait over ValueFrom for generic constraints, but prefer implementing ValueFrom.

Associated Types

type Err: Error

The error type produced by a failed conversion.

Loading content...

Required methods

fn value_into(self) -> Result<Dst, Self::Err>

Convert the subject into an exactly equivalent representation.

Loading content...

Implementors

impl<Src, Dst> ValueInto<Dst> for Src where
    Dst: ValueFrom<Src>, 
[src]

type Err = Dst::Err

Loading content...