Struct gdnative_doc::Builder [−][src]
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]
mut self: Self,
backend: Backend,
callbacks: Box<dyn Callbacks>
) -> Self
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
Auto Trait Implementations
impl !RefUnwindSafe for Builder
[src]
impl !Send for Builder
[src]
impl !Sync for Builder
[src]
impl Unpin for Builder
[src]
impl !UnwindSafe for Builder
[src]
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>,