Enum ftml::tree::PartialElement [−][src]
pub enum PartialElement<'t> {
ListItem(ListItem<'t>),
TableRow(TableRow<'t>),
TableCell(TableCell<'t>),
}Expand description
Part of an element, as returned by a rule.
These are used by specific rules attempting to build complex or nested structures. From any other context, they are errors are parsing will fail.
Variants
ListItem(ListItem<'t>)An item or sub-list within some list.
Tuple Fields of ListItem
0: ListItem<'t>TableRow(TableRow<'t>)A row within some table.
Tuple Fields of TableRow
0: TableRow<'t>TableCell(TableCell<'t>)A cell within some table row.
Tuple Fields of TableCell
0: TableCell<'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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl<'t> RefUnwindSafe for PartialElement<'t>
impl<'t> Send for PartialElement<'t>
impl<'t> Sync for PartialElement<'t>
impl<'t> Unpin for PartialElement<'t>
impl<'t> UnwindSafe for PartialElement<'t>
Blanket Implementations
Mutably borrows from an owned value. Read more