kecc

Trait Translate

Source
pub trait Translate<S> {
    type Target;
    type Error;

    // Required method
    fn translate(&mut self, source: &S) -> Result<Self::Target, Self::Error>;
}
Expand description

Translates S to Translate::Target.

Required Associated Types§

Source

type Target

The type to translate to.

Source

type Error

The error type.

Required Methods§

Source

fn translate(&mut self, source: &S) -> Result<Self::Target, Self::Error>

Translate source to Self::Target.

Implementors§