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: 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)).

tight: bool

Whether 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) -> Self

Create a new NodeDescriptionItem with 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

impl StructuralPartialEq for NodeDescriptionItem

Auto Trait Implementations

impl Freeze for NodeDescriptionItem

impl RefUnwindSafe for NodeDescriptionItem

impl Send for NodeDescriptionItem

impl Sync for NodeDescriptionItem

impl Unpin for NodeDescriptionItem

impl UnsafeUnpin for NodeDescriptionItem

impl UnwindSafe for NodeDescriptionItem

Blanket Implementations

impl<F, T, S> SimdInto<T, S> for NodeDescriptionItem where T: SimdFrom<F, S>, S: Simd,

impl<T> Any for NodeDescriptionItem where T: 'static + ?Sized,

impl<T> Borrow<T> for NodeDescriptionItem where T: ?Sized,

impl<T> BorrowMut<T> for NodeDescriptionItem where T: ?Sized,

impl<T> CloneToUninit for NodeDescriptionItem where T: Clone,

impl<T> From<T> for NodeDescriptionItem

impl<T> ToOwned for NodeDescriptionItem where T: Clone,

impl<T, S> SimdFrom<T, S> for NodeDescriptionItem where S: Simd,

impl<T, U> Into<U> for NodeDescriptionItem where U: From<T>,

impl<T, U> TryFrom<U> for NodeDescriptionItem where U: Into<T>,

impl<T, U> TryInto<U> for NodeDescriptionItem where U: TryFrom<T>,