Enum gdnative_doc::backend::BuiltinBackend [−][src]
Backend already implemented by this library.
This must be used in the Builder::add_backend method.
Variants
Markdown backend
This generates a file for every structure that implements NativeClass + an
index.md file that contains the crate’s documentation.
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 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]
fn clone(&self) -> BuiltinBackend[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for BuiltinBackend[src]
impl Debug for BuiltinBackend[src]
impl Eq for BuiltinBackend[src]
impl Hash for BuiltinBackend[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl Ord for BuiltinBackend[src]
fn cmp(&self, other: &BuiltinBackend) -> Ordering[src]
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
impl PartialEq<BuiltinBackend> for BuiltinBackend[src]
fn eq(&self, other: &BuiltinBackend) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl PartialOrd<BuiltinBackend> for BuiltinBackend[src]
fn partial_cmp(&self, other: &BuiltinBackend) -> Option<Ordering>[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl StructuralEq for BuiltinBackend[src]
impl StructuralPartialEq for BuiltinBackend[src]
Auto Trait Implementations
impl RefUnwindSafe for BuiltinBackend
impl Send for BuiltinBackend
impl Sync for BuiltinBackend
impl Unpin for BuiltinBackend
impl UnwindSafe for BuiltinBackend
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> RuleType for T where
T: Copy + Debug + Eq + Hash + Ord, [src]
T: Copy + Debug + Eq + Hash + Ord,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
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>,