Searched refs:AsciiSet (Results 1 – 3 of 3) sorted by relevance
69 pub struct AsciiSet { struct79 impl AsciiSet { impl95 AsciiSet { mask } in add()101 AsciiSet { mask } in remove()110 pub const CONTROLS: &AsciiSet = &AsciiSet {140 pub const NON_ALPHANUMERIC: &AsciiSet = &CONTROLS232 pub fn percent_encode<'a>(input: &'a [u8], ascii_set: &'static AsciiSet) -> PercentEncode<'a> { in percent_encode()251 pub fn utf8_percent_encode<'a>(input: &'a str, ascii_set: &'static AsciiSet) -> PercentEncode<'a> { in utf8_percent_encode()259 ascii_set: &'static AsciiSet,
16 use percent_encoding::{percent_encode, utf8_percent_encode, AsciiSet, CONTROLS};19 const FRAGMENT: &AsciiSet = &CONTROLS.add(b' ').add(b'"').add(b'<').add(b'>').add(b'`');22 const PATH: &AsciiSet = &FRAGMENT.add(b'#').add(b'?').add(b'{').add(b'}');25 pub(crate) const USERINFO: &AsciiSet = &PATH37 pub(crate) const PATH_SEGMENT: &AsciiSet = &PATH.add(b'/').add(b'%');41 pub(crate) const SPECIAL_PATH_SEGMENT: &AsciiSet = &PATH_SEGMENT.add(b'\\');44 const QUERY: &AsciiSet = &CONTROLS.add(b' ').add(b'"').add(b'#').add(b'<').add(b'>');45 const SPECIAL_QUERY: &AsciiSet = &QUERY.add(b'\'');
6 use percent_encoding::{percent_decode, percent_encode, AsciiSet, CONTROLS};10 const ENCODING_SET: &AsciiSet = &CONTROLS