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

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

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

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

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

Generate the root documentation file of the crate.

The following will be generated (in markdown style):

<crate documentation>

# Classes:

<list of GDNative classes>

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

pub fn generate_file(
    &self,
    name: &str,
    class: &GdnativeClass,
    callbacks: &mut dyn Callbacks
) -> String
[src]

Generate the documentation for a class.

The following will be generated (in markdown style):

# <class name>

**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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for Generator<'a>

impl<'a> Send for Generator<'a>

impl<'a> Sync for Generator<'a>

impl<'a> Unpin for Generator<'a>

impl<'a> UnwindSafe for Generator<'a>

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.