Enum ftml::tree::Elements [−][src]
Expand description
Wrapper for the result of producing element(s).
This has an enum instead of a simple Vec<Element>
since the most common output is a single element,
and it makes little sense to heap allocate for every
single return if we can easily avoid it.
It also contains a field marking whether all of the
contents are paragraph-safe or not, used by ParagraphStack
.
Variants
Tuple Fields of Single
0: Element<'t>
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<'t> RefUnwindSafe for Elements<'t>
impl<'t> UnwindSafe for Elements<'t>
Blanket Implementations
Mutably borrows from an owned value. Read more