Struct NodeDescriptionItem
#[non_exhaustive]
pub struct NodeDescriptionItem { pub marker_offset: usize, pub padding: usize, pub tight: bool }
The metadata of a description list
Fields
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)).
tight: boolWhether the list is tight, i.e. whether the paragraphs are wrapped in
<p>tags when formatted as HTML.
Implementations
impl NodeDescriptionItem
fn new(tight: bool) -> SelfCreate a new
NodeDescriptionItemwith the given tightness.
Trait Implementations
impl Clone for NodeDescriptionItem
fn clone(&self) -> Self
impl Debug for NodeDescriptionItem
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for NodeDescriptionItem
fn default() -> Self
impl Eq for NodeDescriptionItem
impl PartialEq for NodeDescriptionItem
fn eq(&self, other: &Self) -> bool