[][src]Struct markdown_composer::extensions::github::CheckmarkItem

pub struct CheckmarkItem<'a> {
    pub checked: bool,
    pub text: &'a str,
}

A checkmark list item.

Fields

checked: bool

The state of the item.

True if the item is checked, false otherwise.

text: &'a str

The text of the checkmark item.

Implementations

impl<'a> CheckmarkItem<'a>[src]

pub fn new() -> Self[src]

Creates a new default checkmark item.

pub fn from(text: &'a str, checked: bool) -> Self[src]

Creates a mew checkmark item with the given values.

Trait Implementations

impl<'a> Clone for CheckmarkItem<'a>[src]

impl<'a> Debug for CheckmarkItem<'a>[src]

impl<'a> Default for CheckmarkItem<'a>[src]

impl<'_> Display for CheckmarkItem<'_>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for CheckmarkItem<'a>

impl<'a> Send for CheckmarkItem<'a>

impl<'a> Sync for CheckmarkItem<'a>

impl<'a> Unpin for CheckmarkItem<'a>

impl<'a> UnwindSafe for CheckmarkItem<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MarkdownElement for T where
    T: Clone + Debug + Display
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.