Trait conv::ValueInto
[−]
[src]
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
Required Methods
fn value_into(self) -> Result<Dst, Self::Err>
Convert the subject into an exactly equivalent representation.
Implementors
impl<Src, Dst> ValueInto<Dst> for Src where
Dst: ValueFrom<Src>,