Struct gdnative_doc::Builder[][src]

pub struct Builder { /* fields omitted */ }

A builder for generating godot documentation in various formats.

Implementations

impl Builder[src]

pub fn new() -> Self[src]

Create a default Builder with no backends.

pub fn user_config(mut self: Self, path: PathBuf) -> Self[src]

Set configuration options according to the file at path.

See the ConfigFile documentation for information about the configuration file format.

pub fn package(mut self: Self, package: Package) -> Self[src]

Specify the crate to document.

This can be either the name of the crate, or directly the path of the root file.

pub fn add_backend(mut self: Self, backend: Backend) -> Self[src]

Add a new backend to the builder.

pub fn add_backend_with_callbacks(
    mut self: Self,
    backend: Backend,
    callbacks: Box<dyn Callbacks>
) -> Self
[src]

Add a new backend to the builder, with custom callbacks encoding functions.

pub fn build(mut self: Self) -> Result<()>[src]

Build the documentation.

This will generate the documentation for each specified backend, creating the ouput directories if needed.

Trait Implementations

impl Debug for Builder[src]

Auto Trait Implementations

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.