Struct gdnative_bindings_generator::api::Api[][src]

pub struct Api {
    pub classes: Vec<GodotClass>,
    pub api_underscore: HashSet<String>,
}

Fields

classes: Vec<GodotClass>api_underscore: HashSet<String>

Implementations

impl Api[src]

pub fn new(data: &str) -> Self[src]

Construct an Api instance from JSON data.

The JSON data can be generated from Godot using the following command:

/path/to/godot --gdnative-generate-json-api /path/to/api.json

Panics

If the data is not valid JSON data the function will panic.

pub fn find_class<'a, 'b>(&'a self, name: &'b str) -> Option<&'a GodotClass>[src]

pub fn class_inherits(&self, class: &GodotClass, base_class_name: &str) -> bool[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.