Trait iceyee_encoder::Encoder
source · pub trait Encoder {
type Plain;
type Cipher;
type Error;
fn encode(plain: Self::Plain) -> Result<Self::Cipher, Self::Error>;
fn decode(cipher: Self::Cipher) -> Result<Self::Plain, Self::Error>;
}Expand description
编码器.