pub struct ListItem {
pub blocks: Vec<Block>,
pub check: Option<bool>,
}Expand description
列表项:内容是块序列,故支持多段与嵌套子列表。
Fields§
§blocks: Vec<Block>项内容。
check: Option<bool>任务复选标记:None = 普通项;Some(已完成) = 渲染成复选标记(□ / ✓),
对应标记文本的 - [ ] / - [x]。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ListItem
impl RefUnwindSafe for ListItem
impl Send for ListItem
impl Sync for ListItem
impl Unpin for ListItem
impl UnsafeUnpin for ListItem
impl UnwindSafe for ListItem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more