Struct gdnative_bindings_generator::api::Api [−][src]
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
impl RefUnwindSafe for Api
[src]
impl Send for Api
[src]
impl Sync for Api
[src]
impl Unpin for Api
[src]
impl UnwindSafe for Api
[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>,