[−][src]Struct outline::document::Document
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]
&self,
entrypoint: Option<&str>,
language: Option<&str>
) -> Result<String, CompileError>
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]
Ast<'a>: From<T>,
impl<'a> Debug for Document<'a>
[src]
impl<'a, T> FromIterator<T> for Document<'a> where
Ast<'a>: FromIterator<T>,
[src]
Ast<'a>: FromIterator<T>,
fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
[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]
U: From<T>,
impl<T> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,