Trait xml5ever::tendril::fmt::SubsetOf [−]
pub unsafe trait SubsetOf<Super>: Format where
Super: Format, {
fn revalidate_subset(x: &[u8]) -> bool { ... }
}
Expand description
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
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.