Struct lol_html::AsciiCompatibleEncoding[][src]

pub struct AsciiCompatibleEncoding(_);

This is an encoding known to be ASCII-compatible.

Non-ASCII-compatible encodings (UTF-16LE, UTF-16BE, ISO-2022-JP and replacement) are not supported by lol_html.

Implementations

impl AsciiCompatibleEncoding[src]

pub fn new(encoding: &'static Encoding) -> Option<Self>[src]

Returns Some if Encoding is ascii-compatible, or None otherwise.

Trait Implementations

impl Clone for AsciiCompatibleEncoding[src]

impl Copy for AsciiCompatibleEncoding[src]

impl Debug for AsciiCompatibleEncoding[src]

impl Eq for AsciiCompatibleEncoding[src]

impl PartialEq<AsciiCompatibleEncoding> for AsciiCompatibleEncoding[src]

impl StructuralEq for AsciiCompatibleEncoding[src]

impl StructuralPartialEq for AsciiCompatibleEncoding[src]

impl TryFrom<&'static Encoding> for AsciiCompatibleEncoding[src]

type Error = ()

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.