Struct NodeList

struct NodeList { ... }

The metadata of a list; the kind of list, the delimiter used and so on.

Fields

list_type: ListType

The kind of list (bullet (unordered) or ordered).

marker_offset: usize

Number of spaces before the list marker.

padding: usize

Number of characters between the start of the list marker and the item text (including the list marker(s)).

start: usize

For ordered lists, the ordinal the list starts at.

delimiter: ListDelimType

For ordered lists, the delimiter after each number.

bullet_char: u8

For bullet lists, the character used for each bullet.

tight: bool

Whether the list is tight, i.e. whether the paragraphs are wrapped in <p> tags when formatted as HTML.

is_task_list: bool

Whether the list contains tasks (checkbox items)

Implementations

impl Clone for NodeList

fn clone(self: &Self) -> NodeList

impl Copy for NodeList

impl Debug for NodeList

fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result

impl Default for NodeList

fn default() -> NodeList

impl Eq for NodeList

impl Freeze for NodeList

impl PartialEq for NodeList

fn eq(self: &Self, other: &NodeList) -> bool

impl RefUnwindSafe for NodeList

impl Send for NodeList

impl StructuralPartialEq for NodeList

impl Sync for NodeList

impl Unpin for NodeList

impl UnwindSafe for NodeList

impl<T> Any for NodeList

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for NodeList

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for NodeList

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for NodeList

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for NodeList

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for NodeList

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for NodeList

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for NodeList

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for NodeList

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>