[−][src]Struct minimad::Text
a text, that is just a collection of lines
Fields
lines: Vec<Line<'a>>
Methods
impl<'s> Text<'s>
[src]
pub fn from_md_lines<I>(md_lines: I) -> Self where
I: Iterator<Item = &'s str>,
[src]
I: Iterator<Item = &'s str>,
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> Clone for Text<'a>
[src]
impl<'a> Debug for Text<'a>
[src]
impl<'a> Default for Text<'a>
[src]
impl<'a> Eq for Text<'a>
[src]
impl<'s> From<&'s str> for Text<'s>
[src]
impl<'a> PartialEq<Text<'a>> 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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,