Skip to main content

Codec

Trait Codec 

Source
pub trait Codec {
    // Required methods
    fn encode(&self, input: &str) -> String;
    fn decode(&self, input: &str) -> String;
}

Required Methods§

Source

fn encode(&self, input: &str) -> String

Source

fn decode(&self, input: &str) -> String

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§