1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
use super::*; /// ## Details List /// ```note /// >- summary part /// >- sum /// > part2 /// > part3 /// ``` /// /// ```html /// <details open> /// <summary>Want to ruin the surprise?</summary> /// <br> /// Well, you asked for it! /// </details> /// ``` #[derive(Clone, Debug, Eq, PartialEq, Hash)] pub struct ListDetailedNode { summary: ListItem, body: Vec<ListItem>, } impl ListDetailedNode { pub fn is_open(&self) -> bool { matches!(self.summary.prefix.value, ListPrefixSymbol::SummaryOpen) } }