[][src]Struct outline::document::Document

pub struct Document<'a> { /* fields omitted */ }

A representation of a Document of literate code

Methods

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

pub fn print_docs<P: Printer>(&self, printer: &P) -> String[src]

Formats this Document as a string containing the documentation file contents

pub fn print_code(
    &self,
    entrypoint: Option<&str>,
    language: Option<&str>
) -> Result<String, CompileError>
[src]

Formats this Document as a string containing the compiled code

Trait Implementations

impl<'a, T> From<T> for Document<'a> where
    Ast<'a>: From<T>, 
[src]

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

impl<'a, T> FromIterator<T> for Document<'a> where
    Ast<'a>: FromIterator<T>, 
[src]

Auto Trait Implementations

impl<'a> Send for Document<'a>

impl<'a> Unpin for Document<'a>

impl<'a> Sync for Document<'a>

impl<'a> UnwindSafe for Document<'a>

impl<'a> RefUnwindSafe for Document<'a>

Blanket Implementations

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

impl<T> From<T> for T[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.

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

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

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