notedown_ast 0.16.3

Notedown Abstract Syntax Tree
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::*;

/// A list item contains the prefix and rest text nodes
#[derive(Clone, Debug, Eq, PartialEq, Hash)]
pub struct ListItem {
    /// Prefix of the list item
    pub prefix: Literal<ListPrefixMark>,
    /// Rest parts the list item
    pub rest: ASTNodes,
}

impl From<ASTNodes> for ListItem {
    fn from(node: ASTNodes) -> Self {
        Self { prefix: Default::default(), rest: node }
    }
}

impl ListItem {}