Trait gdnative::GodotType [−][src]
pub trait GodotType: Sized { fn to_variant(&self) -> Variant; fn from_variant(variant: &Variant) -> Option<Self>; fn from_sys_variant(variant: &godot_variant) -> Option<Self> { ... } }
Required Methods
fn to_variant(&self) -> Variant
fn from_variant(variant: &Variant) -> Option<Self>
Provided Methods
fn from_sys_variant(variant: &godot_variant) -> Option<Self>
Implementations on Foreign Types
impl GodotType for ()
[src]
impl GodotType for ()
fn to_variant(&self) -> Variant
[src]
fn to_variant(&self) -> Variant
fn from_variant(variant: &Variant) -> Option<Self>
[src]
fn from_variant(variant: &Variant) -> Option<Self>
fn from_sys_variant(variant: &godot_variant) -> Option<Self>
[src]
fn from_sys_variant(variant: &godot_variant) -> Option<Self>
impl GodotType for i8
[src]
impl GodotType for i8
fn to_variant(&self) -> Variant
[src]
fn to_variant(&self) -> Variant
fn from_variant(variant: &Variant) -> Option<Self>
[src]
fn from_variant(variant: &Variant) -> Option<Self>
fn from_sys_variant(variant: &godot_variant) -> Option<Self>
[src]
fn from_sys_variant(variant: &godot_variant) -> Option<Self>
impl GodotType for i16
[src]
impl GodotType for i16
fn to_variant(&self) -> Variant
[src]
fn to_variant(&self) -> Variant
fn from_variant(variant: &Variant) -> Option<Self>
[src]
fn from_variant(variant: &Variant) -> Option<Self>
fn from_sys_variant(variant: &godot_variant) -> Option<Self>
[src]
fn from_sys_variant(variant: &godot_variant) -> Option<Self>
impl GodotType for i32
[src]
impl GodotType for i32
fn to_variant(&self) -> Variant
[src]
fn to_variant(&self) -> Variant
fn from_variant(variant: &Variant) -> Option<Self>
[src]
fn from_variant(variant: &Variant) -> Option<Self>
fn from_sys_variant(variant: &godot_variant) -> Option<Self>
[src]
fn from_sys_variant(variant: &godot_variant) -> Option<Self>
impl GodotType for i64
[src]
impl GodotType for i64
fn to_variant(&self) -> Variant
[src]
fn to_variant(&self) -> Variant
fn from_variant(variant: &Variant) -> Option<Self>
[src]
fn from_variant(variant: &Variant) -> Option<Self>
fn from_sys_variant(variant: &godot_variant) -> Option<Self>
[src]
fn from_sys_variant(variant: &godot_variant) -> Option<Self>
impl GodotType for u8
[src]
impl GodotType for u8
fn to_variant(&self) -> Variant
[src]
fn to_variant(&self) -> Variant
fn from_variant(variant: &Variant) -> Option<Self>
[src]
fn from_variant(variant: &Variant) -> Option<Self>
fn from_sys_variant(variant: &godot_variant) -> Option<Self>
[src]
fn from_sys_variant(variant: &godot_variant) -> Option<Self>
impl GodotType for u16
[src]
impl GodotType for u16
fn to_variant(&self) -> Variant
[src]
fn to_variant(&self) -> Variant
fn from_variant(variant: &Variant) -> Option<Self>
[src]
fn from_variant(variant: &Variant) -> Option<Self>
fn from_sys_variant(variant: &godot_variant) -> Option<Self>
[src]
fn from_sys_variant(variant: &godot_variant) -> Option<Self>
impl GodotType for u32
[src]
impl GodotType for u32
fn to_variant(&self) -> Variant
[src]
fn to_variant(&self) -> Variant
fn from_variant(variant: &Variant) -> Option<Self>
[src]
fn from_variant(variant: &Variant) -> Option<Self>
fn from_sys_variant(variant: &godot_variant) -> Option<Self>
[src]
fn from_sys_variant(variant: &godot_variant) -> Option<Self>
impl GodotType for u64
[src]
impl GodotType for u64
fn to_variant(&self) -> Variant
[src]
fn to_variant(&self) -> Variant
fn from_variant(variant: &Variant) -> Option<Self>
[src]
fn from_variant(variant: &Variant) -> Option<Self>
fn from_sys_variant(variant: &godot_variant) -> Option<Self>
[src]
fn from_sys_variant(variant: &godot_variant) -> Option<Self>
impl GodotType for f32
[src]
impl GodotType for f32
fn to_variant(&self) -> Variant
[src]
fn to_variant(&self) -> Variant
fn from_variant(variant: &Variant) -> Option<Self>
[src]
fn from_variant(variant: &Variant) -> Option<Self>
fn from_sys_variant(variant: &godot_variant) -> Option<Self>
[src]
fn from_sys_variant(variant: &godot_variant) -> Option<Self>
impl GodotType for f64
[src]
impl GodotType for f64
fn to_variant(&self) -> Variant
[src]
fn to_variant(&self) -> Variant
fn from_variant(variant: &Variant) -> Option<Self>
[src]
fn from_variant(variant: &Variant) -> Option<Self>
fn from_sys_variant(variant: &godot_variant) -> Option<Self>
[src]
fn from_sys_variant(variant: &godot_variant) -> Option<Self>
impl GodotType for String
[src]
impl GodotType for String
fn to_variant(&self) -> Variant
[src]
fn to_variant(&self) -> Variant
fn from_variant(variant: &Variant) -> Option<Self>
[src]
fn from_variant(variant: &Variant) -> Option<Self>
fn from_sys_variant(variant: &godot_variant) -> Option<Self>
[src]
fn from_sys_variant(variant: &godot_variant) -> Option<Self>
impl GodotType for Vector2
[src]
impl GodotType for Vector2
fn to_variant(&self) -> Variant
[src]
fn to_variant(&self) -> Variant
fn from_variant(variant: &Variant) -> Option<Self>
[src]
fn from_variant(variant: &Variant) -> Option<Self>
fn from_sys_variant(variant: &godot_variant) -> Option<Self>
[src]
fn from_sys_variant(variant: &godot_variant) -> Option<Self>
impl GodotType for Vector3
[src]
impl GodotType for Vector3
fn to_variant(&self) -> Variant
[src]
fn to_variant(&self) -> Variant
fn from_variant(variant: &Variant) -> Option<Self>
[src]
fn from_variant(variant: &Variant) -> Option<Self>
fn from_sys_variant(variant: &godot_variant) -> Option<Self>
[src]
fn from_sys_variant(variant: &godot_variant) -> Option<Self>
Implementors
impl GodotType for VariantArray
impl GodotType for Dictionary
impl GodotType for NodePath
impl GodotType for GodotString
impl GodotType for ByteArray
impl GodotType for Int32Array
impl GodotType for Float32Array
impl GodotType for StringArray
impl GodotType for Vector2Array
impl GodotType for Vector3Array
impl GodotType for ColorArray