CanConvert

Trait CanConvert 

Source
pub trait CanConvert<From, To>: HasErrorType {
    // Required method
    fn convert(&self, from: &From) -> Result<To, Self::Error>;
}

Required Methods§

Source

fn convert(&self, from: &From) -> Result<To, Self::Error>

Implementors§

Source§

impl<Encoding, From, To> CanConvert<From, To> for Encoding
where Encoding: HasErrorType + HasComponents, Encoding::Components: Converter<Encoding, From, To>,