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

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

opening_comment: bool

Control if an opening comment with meta-information should ba added to generated files.

See ConfigFile::opening_comment

Implementations

Generate the root documentation file of the crate.

The following will be generated (in markdown style):

<crate documentation>


<list of GDNative classes>

This then uses Callbacks::encode to encode this in the target format.

Generate the documentation for a class.

The following will be generated (in markdown style):


**Inherit:** <inherited class>

# Description

<class documentation>

# Properties

<table of class properties>

# Methods

<table of class methods>

# Properties Descriptions

<list of the class properties with their documentation>

# Methods Descriptions

<list of the class methods with their documentation>

This then uses Callbacks::encode to encode this in the target format.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.