pub trait ApproxInto<Dst, Scheme = DefaultApprox>where
Scheme: ApproxScheme,{
type Err: Error;
// Required method
fn approx_into(self) -> Result<Dst, Self::Err>;
}
Expand description
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
.
Required Associated Types§
Required Methods§
Sourcefn approx_into(self) -> Result<Dst, Self::Err>
fn approx_into(self) -> Result<Dst, Self::Err>
Convert the subject into an approximately equivalent representation.