[][src]Trait conv::ApproxInto

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

type Err: Error

The error type produced by a failed conversion.

Loading content...

Required methods

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

Convert the subject into an approximately equivalent representation.

Loading content...

Implementors

impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src where
    Dst: ApproxFrom<Src, Scheme>,
    Scheme: ApproxScheme
[src]

type Err = Dst::Err

Loading content...