fluent_uri/encoding/
encoder.rs#![allow(missing_debug_implementations)]
use super::{table::*, Encoder, Table};
#[derive(Clone, Copy)]
pub struct Userinfo(());
impl Encoder for Userinfo {
const TABLE: &'static Table = USERINFO;
}
#[derive(Clone, Copy)]
pub struct IUserinfo(());
impl Encoder for IUserinfo {
const TABLE: &'static Table = IUSERINFO;
}
#[derive(Clone, Copy)]
#[cfg_attr(fuzzing, derive(PartialEq, Eq))]
pub struct RegName(());
impl Encoder for RegName {
const TABLE: &'static Table = REG_NAME;
}
#[derive(Clone, Copy)]
pub struct IRegName(());
impl Encoder for IRegName {
const TABLE: &'static Table = IREG_NAME;
}
#[derive(Clone, Copy)]
pub struct Port(());
impl Encoder for Port {
const TABLE: &'static Table = DIGIT;
}
#[derive(Clone, Copy)]
pub struct Path(());
impl Encoder for Path {
const TABLE: &'static Table = PATH;
}
#[derive(Clone, Copy)]
pub struct IPath(());
impl Encoder for IPath {
const TABLE: &'static Table = IPATH;
}
#[derive(Clone, Copy)]
pub struct Query(());
impl Encoder for Query {
const TABLE: &'static Table = QUERY;
}
#[derive(Clone, Copy)]
pub struct IQuery(());
impl Encoder for IQuery {
const TABLE: &'static Table = IQUERY;
}
#[derive(Clone, Copy)]
pub struct Fragment(());
impl Encoder for Fragment {
const TABLE: &'static Table = FRAGMENT;
}
#[derive(Clone, Copy)]
pub struct IFragment(());
impl Encoder for IFragment {
const TABLE: &'static Table = IFRAGMENT;
}
#[derive(Clone, Copy)]
pub struct Data(());
impl Encoder for Data {
const TABLE: &'static Table = &UNRESERVED.or_pct_encoded();
}
#[derive(Clone, Copy)]
pub struct IData(());
impl Encoder for IData {
const TABLE: &'static Table = &UNRESERVED.or_pct_encoded().or_ucschar();
}