Trait Encoder

Source
pub trait Encoder: 'static {
    const TABLE: &'static Table;
}
Expand description

A trait used by EStr and EString to specify the table used for encoding.

§Sub-encoders

A sub-encoder SubE of E is an encoder such that SubE::TABLE is a subset of E::TABLE.

Required Associated Constants§

Source

const TABLE: &'static Table

The table used for encoding.

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§

Source§

impl Encoder for Data

Source§

const TABLE: &'static Table

Source§

impl Encoder for Fragment

Source§

const TABLE: &'static Table = FRAGMENT

Source§

impl Encoder for IData

Source§

const TABLE: &'static Table

Source§

impl Encoder for IFragment

Source§

const TABLE: &'static Table = IFRAGMENT

Source§

impl Encoder for IPath

Source§

const TABLE: &'static Table = IPATH

Source§

impl Encoder for IQuery

Source§

const TABLE: &'static Table = IQUERY

Source§

impl Encoder for IRegName

Source§

const TABLE: &'static Table = IREG_NAME

Source§

impl Encoder for IUserinfo

Source§

const TABLE: &'static Table = IUSERINFO

Source§

impl Encoder for Path

Source§

const TABLE: &'static Table = PATH

Source§

impl Encoder for Port

Source§

const TABLE: &'static Table = DIGIT

Source§

impl Encoder for Query

Source§

const TABLE: &'static Table = QUERY

Source§

impl Encoder for RegName

Source§

const TABLE: &'static Table = REG_NAME

Source§

impl Encoder for Userinfo

Source§

const TABLE: &'static Table = USERINFO