[]Trait html5ever::tendril::fmt::SubsetOf

pub unsafe trait SubsetOf<Super>: Format where
    Super: Format
{ fn revalidate_subset(x: &[u8]) -> bool { ... } }

Indicates that one format is a subset of another.

The subset format can be converted to the superset format for free.

Provided methods

fn revalidate_subset(x: &[u8]) -> bool

Validate the other direction of conversion; check if this buffer from the superset format conforms to the subset format.

The default calls Self::validate, but some conversions may implement a check which is cheaper than validating from scratch.

Loading content...

Implementors

impl SubsetOf<Latin1> for ASCII

impl SubsetOf<UTF8> for ASCII

impl SubsetOf<WTF8> for UTF8

Loading content...