Enum gdnative_doc::backend::BuiltinBackend[][src]

pub enum BuiltinBackend {
    Markdown,
    Html,
    Gut,
}

Backend already implemented by this library.

This must be used in the Builder::add_backend method.

Variants

Markdown

Markdown backend

This generates a file for every structure that implements NativeClass + an index.md file that contains the crate's documentation.

Html

Html backend

This generates a file for every structure that implements NativeClass + an index.html file that contains the crate's documentation.

Also generates css and javascript files (for styling and code highlighting).

Gut

Gut backend

This generates a file for every structure that implements NativeClass, generating tests from gdscript code blocks:

#[derive(NativeClass)]
#[inherit(Node)]
pub struct MyClass {}

#[methods]
impl MyClass {
    /// ```gdscript
    /// var x = 0
    /// assert_eq(x, 0)
    /// ```
    pub fn new(_: &Node) -> Self {
        // ...
    }
}

Will generates the following in MyClass.gd:

extends "res://addons/gut/test.gd"

func test_new():
    var x = 0
    assert_eq(x, 0)

Trait Implementations

impl Clone for BuiltinBackend[src]

impl Copy for BuiltinBackend[src]

impl Debug for BuiltinBackend[src]

impl Eq for BuiltinBackend[src]

impl Hash for BuiltinBackend[src]

impl Ord for BuiltinBackend[src]

impl PartialEq<BuiltinBackend> for BuiltinBackend[src]

impl PartialOrd<BuiltinBackend> for BuiltinBackend[src]

impl StructuralEq for BuiltinBackend[src]

impl StructuralPartialEq for BuiltinBackend[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> RuleType for T where
    T: Eq + Ord + Copy + Debug + Hash
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.