Struct NodeDescriptionItem

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.

Trait Implementations

impl Clone for NodeDescriptionItem

fn clone(&self) -> NodeDescriptionItem

impl Copy for NodeDescriptionItem

impl Debug for NodeDescriptionItem

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

impl Default for NodeDescriptionItem

fn default() -> NodeDescriptionItem

impl Eq for NodeDescriptionItem

impl PartialEq for NodeDescriptionItem

fn eq(&self, other: &NodeDescriptionItem) -> 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<T> Any for NodeDescriptionItem where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

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

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

impl<T> From<T> for NodeDescriptionItem

fn from(t: T) -> T

Returns the argument unchanged.

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

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

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

fn into(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<U> for NodeDescriptionItem where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

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