Struct minimad::Text [−][src]
Expand description
a text, that is just a collection of lines
Fields
lines: Vec<Line<'a>>
Implementations
impl<'s> Text<'s>
[src]
impl<'s> Text<'s>
[src]pub fn from_md_lines<I>(md_lines: I) -> Self where
I: Iterator<Item = &'s str>,
[src]
pub fn from_md_lines<I>(md_lines: I) -> Self where
I: Iterator<Item = &'s str>,
[src]parse a text from markdown lines.
The main reason to use this one is to use
the clean::lines
function which is useful with
raw literals:
use minimad::{clean, Text}; let md = clean::lines(r#" * some bullet item some text some_code(); "#); let text = Text::from_md_lines(md.into_iter());
Trait Implementations
impl<'a> Eq for Text<'a>
[src]
impl<'a> StructuralEq for Text<'a>
[src]
impl<'a> StructuralPartialEq for Text<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Text<'a>
impl<'a> Send for Text<'a>
impl<'a> Sync for Text<'a>
impl<'a> Unpin for Text<'a>
impl<'a> UnwindSafe for Text<'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