[−][src]Trait ramhorns::Content
Trait allowing the rendering to quickly access data stored in the type that
implements it. You needn't worry about implementing it, in virtually all
cases the #[derive(Content)]
attribute above your types should be sufficient.
Provided methods
fn is_truthy(&self) -> bool
Marks whether this content is truthy. Used when attempting to render a section.
fn capacity_hint(&self, _tpl: &Template<'_>) -> usize
How much capacity is likely required for all the data in this Content
for a given Template
.
fn render_escaped<E: Encoder>(&self, _encoder: &mut E) -> Result<(), E::Error>
Renders self as a variable to the encoder.
This will escape HTML characters, eg: <
will become <
.
fn render_unescaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
Renders self as a variable to the encoder.
This doesn't perform any escaping at all.
fn render_cmark<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
Renders self as a variable to the encoder with CommonMark processing.
The generated HTML is never escaped.
fn render_section<C, E>(
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
Render a section with self.
fn render_inverse<C, E>(
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
Render a section with self.
fn render_field_escaped<E: Encoder>(
&self,
_hash: u64,
_name: &str,
_encoder: &mut E
) -> Result<bool, E::Error>
&self,
_hash: u64,
_name: &str,
_encoder: &mut E
) -> Result<bool, E::Error>
Render a field by the hash or string of its name.
This will escape HTML characters, eg: <
will become <
.
If successful, returns true
if the field exists in this content, otherwise false
.
fn render_field_unescaped<E: Encoder>(
&self,
_hash: u64,
_name: &str,
_encoder: &mut E
) -> Result<bool, E::Error>
&self,
_hash: u64,
_name: &str,
_encoder: &mut E
) -> Result<bool, E::Error>
Render a field by the hash or string of its name.
This doesn't perform any escaping at all.
If successful, returns true
if the field exists in this content, otherwise false
.
fn render_field_section<C, E>(
&self,
_hash: u64,
_name: &str,
_section: Section<'_, C>,
_encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
&self,
_hash: u64,
_name: &str,
_section: Section<'_, C>,
_encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
Render a field by the hash or string of its name, as a section.
If successful, returns true
if the field exists in this content, otherwise false
.
fn render_field_inverse<C, E>(
&self,
_hash: u64,
_name: &str,
_section: Section<'_, C>,
_encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
&self,
_hash: u64,
_name: &str,
_section: Section<'_, C>,
_encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
Render a field, by the hash of or string its name, as an inverse section.
If successful, returns true
if the field exists in this content, otherwise false
.
Implementations on Foreign Types
impl Content for ()
[src]
impl Content for str
[src]
fn is_truthy(&self) -> bool
[src]
fn capacity_hint(&self, _tpl: &Template<'_>) -> usize
[src]
fn render_escaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
fn render_unescaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
fn render_cmark<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
impl Content for String
[src]
fn is_truthy(&self) -> bool
[src]
fn capacity_hint(&self, _tpl: &Template<'_>) -> usize
[src]
fn render_escaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
fn render_unescaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
fn render_cmark<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
impl Content for bool
[src]
fn is_truthy(&self) -> bool
[src]
fn capacity_hint(&self, _tpl: &Template<'_>) -> usize
[src]
fn render_escaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
impl Content for u8
[src]
fn is_truthy(&self) -> bool
[src]
fn capacity_hint(&self, _tpl: &Template<'_>) -> usize
[src]
fn render_escaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
impl Content for u16
[src]
fn is_truthy(&self) -> bool
[src]
fn capacity_hint(&self, _tpl: &Template<'_>) -> usize
[src]
fn render_escaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
impl Content for u32
[src]
fn is_truthy(&self) -> bool
[src]
fn capacity_hint(&self, _tpl: &Template<'_>) -> usize
[src]
fn render_escaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
impl Content for u64
[src]
fn is_truthy(&self) -> bool
[src]
fn capacity_hint(&self, _tpl: &Template<'_>) -> usize
[src]
fn render_escaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
impl Content for u128
[src]
fn is_truthy(&self) -> bool
[src]
fn capacity_hint(&self, _tpl: &Template<'_>) -> usize
[src]
fn render_escaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
impl Content for usize
[src]
fn is_truthy(&self) -> bool
[src]
fn capacity_hint(&self, _tpl: &Template<'_>) -> usize
[src]
fn render_escaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
impl Content for i8
[src]
fn is_truthy(&self) -> bool
[src]
fn capacity_hint(&self, _tpl: &Template<'_>) -> usize
[src]
fn render_escaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
impl Content for i16
[src]
fn is_truthy(&self) -> bool
[src]
fn capacity_hint(&self, _tpl: &Template<'_>) -> usize
[src]
fn render_escaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
impl Content for i32
[src]
fn is_truthy(&self) -> bool
[src]
fn capacity_hint(&self, _tpl: &Template<'_>) -> usize
[src]
fn render_escaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
impl Content for i64
[src]
fn is_truthy(&self) -> bool
[src]
fn capacity_hint(&self, _tpl: &Template<'_>) -> usize
[src]
fn render_escaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
impl Content for i128
[src]
fn is_truthy(&self) -> bool
[src]
fn capacity_hint(&self, _tpl: &Template<'_>) -> usize
[src]
fn render_escaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
impl Content for isize
[src]
fn is_truthy(&self) -> bool
[src]
fn capacity_hint(&self, _tpl: &Template<'_>) -> usize
[src]
fn render_escaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
impl Content for f32
[src]
fn is_truthy(&self) -> bool
[src]
fn capacity_hint(&self, _tpl: &Template<'_>) -> usize
[src]
fn render_escaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
impl Content for f64
[src]
fn is_truthy(&self) -> bool
[src]
fn capacity_hint(&self, _tpl: &Template<'_>) -> usize
[src]
fn render_escaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
impl<T: Content> Content for Option<T>
[src]
fn is_truthy(&self) -> bool
[src]
fn capacity_hint(&self, tpl: &Template<'_>) -> usize
[src]
fn render_escaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
fn render_unescaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
fn render_section<C, E>(
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
impl<T: Content, U> Content for Result<T, U>
[src]
fn is_truthy(&self) -> bool
[src]
fn capacity_hint(&self, tpl: &Template<'_>) -> usize
[src]
fn render_escaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
fn render_unescaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
fn render_section<C, E>(
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
impl<T: Content> Content for Vec<T>
[src]
fn is_truthy(&self) -> bool
[src]
fn render_section<C, E>(
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
impl<T: Content> Content for [T]
[src]
fn is_truthy(&self) -> bool
[src]
fn render_section<C, E>(
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
impl<K, V, S> Content for HashMap<K, V, S> where
K: Borrow<str> + Hash + Eq,
V: Content,
S: BuildHasher,
[src]
K: Borrow<str> + Hash + Eq,
V: Content,
S: BuildHasher,
fn is_truthy(&self) -> bool
[src]
fn render_section<C, E>(
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
Render a section with self.
fn render_field_escaped<E>(
&self,
_: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error> where
E: Encoder,
[src]
&self,
_: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error> where
E: Encoder,
fn render_field_unescaped<E>(
&self,
_: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error> where
E: Encoder,
[src]
&self,
_: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error> where
E: Encoder,
fn render_field_section<C, E>(
&self,
_: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
_: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
fn render_field_inverse<C, E>(
&self,
_: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
_: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
impl<K, V> Content for BTreeMap<K, V> where
K: Borrow<str> + Ord,
V: Content,
[src]
K: Borrow<str> + Ord,
V: Content,
fn is_truthy(&self) -> bool
[src]
fn render_section<C, E>(
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
Render a section with self.
fn render_field_escaped<E>(
&self,
_: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error> where
E: Encoder,
[src]
&self,
_: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error> where
E: Encoder,
fn render_field_unescaped<E>(
&self,
_: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error> where
E: Encoder,
[src]
&self,
_: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error> where
E: Encoder,
fn render_field_section<C, E>(
&self,
_: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
_: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
fn render_field_inverse<C, E>(
&self,
_: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
_: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
impl<T: Content + ?Sized, '_> Content for &'_ T
[src]
fn is_truthy(&self) -> bool
[src]
fn capacity_hint(&self, tpl: &Template<'_>) -> usize
[src]
fn render_escaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
fn render_unescaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
fn render_section<C, E>(
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
fn render_inverse<C, E>(
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
fn render_field_escaped<E: Encoder>(
&self,
hash: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error>
[src]
&self,
hash: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error>
fn render_field_unescaped<E: Encoder>(
&self,
hash: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error>
[src]
&self,
hash: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error>
fn render_field_section<C, E>(
&self,
hash: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
hash: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
fn render_field_inverse<C, E>(
&self,
hash: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
hash: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
impl<T: Content + ?Sized> Content for Box<T>
[src]
fn is_truthy(&self) -> bool
[src]
fn capacity_hint(&self, tpl: &Template<'_>) -> usize
[src]
fn render_escaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
fn render_unescaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
fn render_section<C, E>(
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
fn render_inverse<C, E>(
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
fn render_field_escaped<E: Encoder>(
&self,
hash: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error>
[src]
&self,
hash: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error>
fn render_field_unescaped<E: Encoder>(
&self,
hash: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error>
[src]
&self,
hash: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error>
fn render_field_section<C, E>(
&self,
hash: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
hash: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
fn render_field_inverse<C, E>(
&self,
hash: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
hash: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
impl<T: Content + ?Sized> Content for Rc<T>
[src]
fn is_truthy(&self) -> bool
[src]
fn capacity_hint(&self, tpl: &Template<'_>) -> usize
[src]
fn render_escaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
fn render_unescaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
fn render_section<C, E>(
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
fn render_inverse<C, E>(
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
fn render_field_escaped<E: Encoder>(
&self,
hash: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error>
[src]
&self,
hash: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error>
fn render_field_unescaped<E: Encoder>(
&self,
hash: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error>
[src]
&self,
hash: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error>
fn render_field_section<C, E>(
&self,
hash: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
hash: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
fn render_field_inverse<C, E>(
&self,
hash: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
hash: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
impl<T: Content + ?Sized> Content for Arc<T>
[src]
fn is_truthy(&self) -> bool
[src]
fn capacity_hint(&self, tpl: &Template<'_>) -> usize
[src]
fn render_escaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
fn render_unescaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
fn render_section<C, E>(
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
fn render_inverse<C, E>(
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
fn render_field_escaped<E: Encoder>(
&self,
hash: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error>
[src]
&self,
hash: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error>
fn render_field_unescaped<E: Encoder>(
&self,
hash: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error>
[src]
&self,
hash: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error>
fn render_field_section<C, E>(
&self,
hash: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
hash: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
fn render_field_inverse<C, E>(
&self,
hash: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
hash: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
impl<T: Content + ToOwned + ?Sized, '_> Content for Cow<'_, T>
[src]
fn is_truthy(&self) -> bool
[src]
fn capacity_hint(&self, tpl: &Template<'_>) -> usize
[src]
fn render_escaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
fn render_unescaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
fn render_section<C, E>(
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
fn render_inverse<C, E>(
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
fn render_field_escaped<E: Encoder>(
&self,
hash: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error>
[src]
&self,
hash: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error>
fn render_field_unescaped<E: Encoder>(
&self,
hash: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error>
[src]
&self,
hash: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error>
fn render_field_section<C, E>(
&self,
hash: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
hash: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
fn render_field_inverse<C, E>(
&self,
hash: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
hash: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
impl<T: Content + Clone + ?Sized, '_> Content for Cow<'_, [T]>
[src]
fn is_truthy(&self) -> bool
[src]
fn capacity_hint(&self, tpl: &Template<'_>) -> usize
[src]
fn render_escaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
fn render_unescaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
fn render_section<C, E>(
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
fn render_inverse<C, E>(
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
fn render_field_escaped<E: Encoder>(
&self,
hash: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error>
[src]
&self,
hash: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error>
fn render_field_unescaped<E: Encoder>(
&self,
hash: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error>
[src]
&self,
hash: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error>
fn render_field_section<C, E>(
&self,
hash: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
hash: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
fn render_field_inverse<C, E>(
&self,
hash: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
hash: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
impl<T: Content + Clone + ?Sized, '_> Content for Cow<'_, [T]>
[src]
fn is_truthy(&self) -> bool
[src]
fn capacity_hint(&self, tpl: &Template<'_>) -> usize
[src]
fn render_escaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
fn render_unescaped<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
[src]
fn render_section<C, E>(
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
fn render_inverse<C, E>(
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
fn render_field_escaped<E: Encoder>(
&self,
hash: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error>
[src]
&self,
hash: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error>
fn render_field_unescaped<E: Encoder>(
&self,
hash: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error>
[src]
&self,
hash: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error>
fn render_field_section<C, E>(
&self,
hash: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
hash: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
fn render_field_inverse<C, E>(
&self,
hash: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
hash: u64,
name: &str,
section: Section<'_, C>,
encoder: &mut E
) -> Result<bool, E::Error> where
C: ContentSequence,
E: Encoder,