pub trait ContentSequence: Combine + Sized + Copy {
    fn render_field_escaped<E: Encoder>(
        &self,
        _hash: u64,
        _name: &str,
        _encoder: &mut E
    ) -> Result<(), E::Error> { ... } fn render_field_unescaped<E: Encoder>(
        &self,
        _hash: u64,
        _name: &str,
        _encoder: &mut E
    ) -> Result<(), E::Error> { ... } fn render_field_section<'section, P, E>(
        &self,
        _hash: u64,
        _name: &str,
        _section: Section<'section, P>,
        _encoder: &mut E
    ) -> Result<(), E::Error>
    where
        P: ContentSequence,
        E: Encoder
, { ... } fn render_field_inverse<'section, P, E>(
        &self,
        _hash: u64,
        _name: &str,
        _section: Section<'section, P>,
        _encoder: &mut E
    ) -> Result<(), E::Error>
    where
        P: ContentSequence,
        E: Encoder
, { ... } }
Expand description

Helper trait that re-exposes render_field_x methods of a Content trait, calling those methods internally on all Contents contained within Self.

Provided Methods

Render a field by the hash or string of its name.

This will escape HTML characters, eg: < will become &lt;.

Render a field by the hash or string of its name.

This doesn’t perform any escaping at all.

Render a field by the hash or string of its name, as a section.

Render a field, by the hash of or string its name, as an inverse section.

Implementations on Foreign Types

Implementors