pub trait ValueInto<Dst> {
type Err: Error;
// Required method
fn value_into(self) -> Result<Dst, Self::Err>;
}
Expand description
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
.
Required Associated Types§
Required Methods§
Sourcefn value_into(self) -> Result<Dst, Self::Err>
fn value_into(self) -> Result<Dst, Self::Err>
Convert the subject into an exactly equivalent representation.