Enum minimad::Line [−][src]
pub enum Line<'a> { Normal(Composite<'a>), TableRow(TableRow<'a>), TableRule(TableRule), HorizontalRule, CodeFence(Composite<'a>), }
Expand description
a parsed line
Variants
Normal(Composite<'a>)
TableRow(TableRow<'a>)
TableRule(TableRule)
CodeFence(Composite<'a>)
Implementations
impl Line<'_>
[src]
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> Eq 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>
impl<'a> Send for Line<'a>
impl<'a> Sync for Line<'a>
impl<'a> Unpin for Line<'a>
impl<'a> UnwindSafe for Line<'a>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more