Enum minimad::Line[][src]

pub enum Line<'a> {
    Normal(Composite<'a>),
    TableRow(TableRow<'a>),
    TableRule(TableRule),
    HorizontalRule,
    CodeFence(Composite<'a>),
}

a parsed line

Variants

Normal(Composite<'a>)
TableRow(TableRow<'a>)
TableRule(TableRule)
HorizontalRule
CodeFence(Composite<'a>)

Implementations

impl Line<'_>[src]

pub fn from(md: &str) -> Line<'_>[src]

pub fn char_length(&self) -> usize[src]

pub fn new_paragraph(compounds: Vec<Compound<'_>>) -> Line<'_>[src]

pub fn empty_code_fence() -> Line<'static>[src]

pub fn new_code_fence(compounds: Vec<Compound<'_>>) -> Line<'_>[src]

pub fn new_code(compound: Compound<'_>) -> Line<'_>[src]

pub fn new_quote(compounds: Vec<Compound<'_>>) -> Line<'_>[src]

pub fn new_list_item(compounds: Vec<Compound<'_>>) -> Line<'_>[src]

pub fn new_header(level: u8, compounds: Vec<Compound<'_>>) -> Line<'_>[src]

pub fn new_table_row(cells: Vec<Composite<'_>>) -> Line<'_>[src]

pub fn new_table_alignments(cells: Vec<Alignment>) -> Line<'static>[src]

pub fn is_table_row(&self) -> bool[src]

pub fn is_table_part(&self) -> bool[src]

pub fn is_code(&self) -> bool[src]

Trait Implementations

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

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

impl<'a> Eq for Line<'a>[src]

impl<'a> PartialEq<Line<'a>> for Line<'a>[src]

impl<'a> StructuralEq for Line<'a>[src]

impl<'a> StructuralPartialEq for Line<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Line<'a>[src]

impl<'a> Send for Line<'a>[src]

impl<'a> Sync for Line<'a>[src]

impl<'a> Unpin for Line<'a>[src]

impl<'a> UnwindSafe for Line<'a>[src]

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> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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.