Struct gdnative_doc::backend::Generator [−][src]
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.
Implementations
impl<'a> Generator<'a>
[src]
pub fn generate_root_file(
&self,
extension: &str,
callbacks: &mut dyn Callbacks
) -> String
[src]
&self,
extension: &str,
callbacks: &mut dyn Callbacks
) -> String
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]
&self,
name: &str,
class: &GdnativeClass,
callbacks: &mut dyn Callbacks
) -> String
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
pub 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>,