Skip to main content

CodecContext

Trait CodecContext 

Source
pub trait CodecContext: Sized {
    type Error;
    type StrBuf: StrBuffer;
    type BytesBuf: AsRef<[u8]>;

    // Required methods
    fn string(&self, s: Wtf8Buf) -> Self::StrBuf;
    fn bytes(&self, b: Vec<u8>) -> Self::BytesBuf;
}

Required Associated Types§

Required Methods§

Source

fn string(&self, s: Wtf8Buf) -> Self::StrBuf

Source

fn bytes(&self, b: Vec<u8>) -> Self::BytesBuf

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§