pub fn add_backend(mut self, backend: BuiltinBackend, output_dir: PathBuf) -> Self {
        let callbacks: Box<dyn Callbacks> = match &backend {
            BuiltinBackend::Markdown => Box::new(backend::MarkdownCallbacks::default()),
            BuiltinBackend::Html => Box::new(backend::HtmlCallbacks::default()),
            BuiltinBackend::Gut => Box::new(backend::GutCallbacks::default()),
        };
        self.backends.push((callbacks, output_dir));
        self
    }
/// Add a new builtin backend to the builder.
///
/// # Example
/// ```
/// # use gdnative_doc::{Builder, backend::BuiltinBackend};
/// # use std::path::PathBuf;
/// let builder = Builder::new().add_backend(BuiltinBackend::Markdown, PathBuf::from("doc"));
/// ```
Add a new builtin backend to the builder.
Add a new builtin backend to the builder .
pub fn add_backend(mut self, backend: BuiltinBackend, output_dir: PathBuf) -> Self {
        let callbacks: Box<dyn Callbacks> = match &backend {
            BuiltinBackend::Markdown => Box::new(backend::MarkdownCallbacks::default()),
            BuiltinBackend::Html => Box::new(backend::HtmlCallbacks::default()),
            BuiltinBackend::Gut => Box::new(backend::GutCallbacks::default()),
        };
        self.backends.push((callbacks, output_dir));
        self
    }
pub fn add_backend ( mut self , backend : BuiltinBackend , output_dir : PathBuf ) -> Self { let callbacks : Box < dyn Callbacks > = match & backend { BuiltinBackend :: Markdown => Box :: new ( backend :: MarkdownCallbacks :: default ( ) ) , BuiltinBackend :: Html => Box :: new ( backend :: HtmlCallbacks :: default ( ) ) , BuiltinBackend :: Gut => Box :: new ( backend :: GutCallbacks :: default ( ) ) , } ; self . backends . push ( ( callbacks , output_dir ) ) ; self }
Add a new builtin backend to the builder.
Add a new builtin backend to the builder .
mut self
backend
BuiltinBackend
output_dir
PathBuf
mut self
backend
BuiltinBackend
output_dir
PathBuf
example
None
use gdnative_doc::{builder, backend::builtinbackend};
None
use std::path::pathbuf;
let builder = Builder::new().add_backend(BuiltinBackend::Markdown, PathBuf::from("doc"));
```
let builder = Builder :: new () . add_backend ( BuiltinBackend :: Markdown PathBuf :: from ( " doc " )) ; ` ` `