pub struct List {
pub values: Vec<Node>,
pub index: usize,
pub level: u8,
pub ordered: bool,
pub checked: Option<bool>,
pub spread: bool,
pub start: Option<u32>,
pub marker: Option<ListMarker>,
pub position: Option<Position>,
}Expand description
A list item.
Fields§
§values: Vec<Node>The content of the item.
index: usizeIndex of the item in its list.
level: u8Nesting level of the list.
ordered: boolWhether the list is ordered.
checked: Option<bool>Task state: None if the item is not a task.
spread: boolWhether the whole list is loose (blank line between/within items).
start: Option<u32>Starting number for an ordered list (e.g. 5 in 5. foo); None means 1.
marker: Option<ListMarker>Source marker. None keeps the default of the list kind: - for bullets, . for ordered lists.
position: Option<Position>Where the node is in the source, if known.
Trait Implementations§
impl StructuralPartialEq for List
Auto Trait Implementations§
impl Forget for List
impl Freeze for List
impl Move for List
impl RefUnwindSafe for List
impl Send for List
impl Sync for List
impl Unpin for List
impl UnsafeUnpin for List
impl UnwindSafe for List
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more