Trait conv::ApproxInto
[−]
[src]
pub trait ApproxInto<Dst, Scheme = DefaultApprox> where
Scheme: ApproxScheme, {
type Err: Error;
fn approx_into(self) -> Result<Dst, Self::Err>;
}This is the dual of ApproxFrom; see that trait for information.
Where possible, prefer using this trait over ApproxFrom for generic constraints, but prefer implementing ApproxFrom.
Associated Types
Required Methods
fn approx_into(self) -> Result<Dst, Self::Err>
Convert the subject into an approximately equivalent representation.
Implementors
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src where
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,