Trait cssparser::EncodingSupport [] [src]

pub trait EncodingSupport {
    type Encoding;
    fn from_label(ascii_label: &[u8]) -> Option<Self::Encoding>;
fn utf8() -> Self::Encoding;
fn is_utf16_be_or_le(encoding: &Self::Encoding) -> bool; }

Abstraction for avoiding a dependency from cssparser to an encoding library

Associated Types

One character encoding

Required Methods

Return the UTF-8 encoding

Whether the given encoding is UTF-16BE or UTF-16LE

Implementors