[][src]Trait cssparser::EncodingSupport

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

Abstraction for avoiding a dependency from cssparser to an encoding library

Associated Types

type Encoding[src]

One character encoding

Loading content...

Required methods

pub fn from_label(ascii_label: &[u8]) -> Option<Self::Encoding>[src]

https://encoding.spec.whatwg.org/#concept-encoding-get

pub fn utf8() -> Self::Encoding[src]

Return the UTF-8 encoding

pub fn is_utf16_be_or_le(encoding: &Self::Encoding) -> bool[src]

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

Loading content...

Implementors

Loading content...