pub struct NodeList {
pub list_type: ListType,
pub marker_offset: usize,
pub padding: usize,
pub start: usize,
pub delimiter: ListDelimType,
pub bullet_char: u8,
pub tight: bool,
}Expand description
The metadata of a list; the kind of list, the delimiter used and so on.
Fields§
§list_type: ListTypeThe kind of list (bullet (unordered) or ordered).
marker_offset: usizeNumber of spaces before the list marker.
padding: usizeNumber of characters between the start of the list marker and the item text (including the list marker(s)).
start: usizeFor ordered lists, the ordinal the list starts at.
delimiter: ListDelimTypeFor ordered lists, the delimiter after each number.
bullet_char: u8For bullet lists, the character used for each bullet.
tight: boolWhether the list is tight, i.e. whether the
paragraphs are wrapped in <p> tags when formatted as HTML.
Trait Implementations§
source§impl PartialEq for NodeList
impl PartialEq for NodeList
impl Copy for NodeList
impl Eq for NodeList
impl StructuralEq for NodeList
impl StructuralPartialEq for NodeList
Auto Trait Implementations§
impl RefUnwindSafe for NodeList
impl Send for NodeList
impl Sync for NodeList
impl Unpin for NodeList
impl UnwindSafe for NodeList
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