Struct gdnative_doc::documentation::GdnativeClass[][src]

pub struct GdnativeClass {
    pub name: String,
    pub inherit: String,
    pub documentation: String,
    pub properties: Vec<Property>,
    pub methods: Vec<Method>,
    pub file: PathBuf,
}

Structure that derive NativeClass

Note

It cannot be generic.

Fields

name: String

Name of the structure

inherit: String

Name of the type in #[inherit(...)]

documentation: String

Documentation associated with the structure.

properties: Vec<Property>

Properties exported by the structure

methods: Vec<Method>

Exported methods of this structure

As per gdnative’s documentation, exported methods are

  • In a #[methods] impl block
  • Either new, or marked with #[export]
file: PathBuf

File in which the struct was declared

Trait Implementations

impl Clone for GdnativeClass[src]

impl Debug for GdnativeClass[src]

impl Eq for GdnativeClass[src]

impl Hash for GdnativeClass[src]

impl PartialEq<GdnativeClass> for GdnativeClass[src]

impl StructuralEq for GdnativeClass[src]

impl StructuralPartialEq for GdnativeClass[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> 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.