Struct gdnative_doc::backend::Generator[][src]

pub struct Generator<'a> {
    pub resolver: &'a Resolver,
    pub documentation: &'a Documentation,
    pub markdown_options: MarkdownOptions,
}

Holds the information necessary to generate the output files.

This is used by structures implementing Callbacks.

Fields

resolver: &'a Resolver

Used to resolve links.

documentation: &'a Documentation

Holds the crate's documentation.

markdown_options: MarkdownOptions

Enabled markdown options

Implementations

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

pub fn generate_root_file(
    &mut self,
    extension: &str,
    callbacks: &mut dyn Callbacks
) -> String
[src]

Generate the root documentation file of the crate.

This is a decent default: it generate a description based on

pub fn generate_files(
    &mut self,
    callbacks: &mut dyn Callbacks
) -> Vec<(String, String)>
[src]

Generate pairs of (class_name, file_content).

Trait Implementations

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for Generator<'a>[src]

impl<'a> Send for Generator<'a>[src]

impl<'a> Sync for Generator<'a>[src]

impl<'a> Unpin for Generator<'a>[src]

impl<'a> UnwindSafe for Generator<'a>[src]

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<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.