Trait Decode

Source
pub trait Decode {
    // Required method
    fn decode(bytes: &[u8]) -> (i32, u32);
}

Required Methods§

Source

fn decode(bytes: &[u8]) -> (i32, u32)

A callback that decodes the next code point from the input slice. It should return the code point, and how many bytes were decoded.

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§