html5ever::tendril

Trait SliceExt

Source
pub trait SliceExt<F>: Slice
where F: SliceFormat<Slice = Self>,
{ // Provided method fn to_tendril(&self) -> Tendril<F> { ... } }
Expand description

Tendril-related methods for Rust slices.

Provided Methods§

Source

fn to_tendril(&self) -> Tendril<F>

Make a Tendril from this slice.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl SliceExt<Bytes> for [u8]

Source§

impl SliceExt<UTF8> for str

Implementors§