Struct VariantType
#[repr(transparent)]pub struct VariantType { /* private fields */ }
Expand description
Godot enum name: Variant.Type
.
Implementations§
§impl VariantType
impl VariantType
pub const NIL: VariantType = _
pub const NIL: VariantType = _
Godot enumerator name: TYPE_NIL
pub const BOOL: VariantType = _
pub const BOOL: VariantType = _
Godot enumerator name: TYPE_BOOL
pub const INT: VariantType = _
pub const INT: VariantType = _
Godot enumerator name: TYPE_INT
pub const FLOAT: VariantType = _
pub const FLOAT: VariantType = _
Godot enumerator name: TYPE_FLOAT
pub const STRING: VariantType = _
pub const STRING: VariantType = _
Godot enumerator name: TYPE_STRING
pub const VECTOR2: VariantType = _
pub const VECTOR2: VariantType = _
Godot enumerator name: TYPE_VECTOR2
pub const VECTOR2I: VariantType = _
pub const VECTOR2I: VariantType = _
Godot enumerator name: TYPE_VECTOR2I
pub const RECT2: VariantType = _
pub const RECT2: VariantType = _
Godot enumerator name: TYPE_RECT2
pub const RECT2I: VariantType = _
pub const RECT2I: VariantType = _
Godot enumerator name: TYPE_RECT2I
pub const VECTOR3: VariantType = _
pub const VECTOR3: VariantType = _
Godot enumerator name: TYPE_VECTOR3
pub const VECTOR3I: VariantType = _
pub const VECTOR3I: VariantType = _
Godot enumerator name: TYPE_VECTOR3I
pub const TRANSFORM2D: VariantType = _
pub const TRANSFORM2D: VariantType = _
Godot enumerator name: TYPE_TRANSFORM2D
pub const VECTOR4: VariantType = _
pub const VECTOR4: VariantType = _
Godot enumerator name: TYPE_VECTOR4
pub const VECTOR4I: VariantType = _
pub const VECTOR4I: VariantType = _
Godot enumerator name: TYPE_VECTOR4I
pub const PLANE: VariantType = _
pub const PLANE: VariantType = _
Godot enumerator name: TYPE_PLANE
pub const QUATERNION: VariantType = _
pub const QUATERNION: VariantType = _
Godot enumerator name: TYPE_QUATERNION
pub const AABB: VariantType = _
pub const AABB: VariantType = _
Godot enumerator name: TYPE_AABB
pub const BASIS: VariantType = _
pub const BASIS: VariantType = _
Godot enumerator name: TYPE_BASIS
pub const TRANSFORM3D: VariantType = _
pub const TRANSFORM3D: VariantType = _
Godot enumerator name: TYPE_TRANSFORM3D
pub const PROJECTION: VariantType = _
pub const PROJECTION: VariantType = _
Godot enumerator name: TYPE_PROJECTION
pub const COLOR: VariantType = _
pub const COLOR: VariantType = _
Godot enumerator name: TYPE_COLOR
pub const STRING_NAME: VariantType = _
pub const STRING_NAME: VariantType = _
Godot enumerator name: TYPE_STRING_NAME
pub const NODE_PATH: VariantType = _
pub const NODE_PATH: VariantType = _
Godot enumerator name: TYPE_NODE_PATH
pub const RID: VariantType = _
pub const RID: VariantType = _
Godot enumerator name: TYPE_RID
pub const OBJECT: VariantType = _
pub const OBJECT: VariantType = _
Godot enumerator name: TYPE_OBJECT
pub const CALLABLE: VariantType = _
pub const CALLABLE: VariantType = _
Godot enumerator name: TYPE_CALLABLE
pub const SIGNAL: VariantType = _
pub const SIGNAL: VariantType = _
Godot enumerator name: TYPE_SIGNAL
pub const DICTIONARY: VariantType = _
pub const DICTIONARY: VariantType = _
Godot enumerator name: TYPE_DICTIONARY
pub const ARRAY: VariantType = _
pub const ARRAY: VariantType = _
Godot enumerator name: TYPE_ARRAY
pub const PACKED_BYTE_ARRAY: VariantType = _
pub const PACKED_BYTE_ARRAY: VariantType = _
Godot enumerator name: TYPE_PACKED_BYTE_ARRAY
pub const PACKED_INT32_ARRAY: VariantType = _
pub const PACKED_INT32_ARRAY: VariantType = _
Godot enumerator name: TYPE_PACKED_INT32_ARRAY
pub const PACKED_INT64_ARRAY: VariantType = _
pub const PACKED_INT64_ARRAY: VariantType = _
Godot enumerator name: TYPE_PACKED_INT64_ARRAY
pub const PACKED_FLOAT32_ARRAY: VariantType = _
pub const PACKED_FLOAT32_ARRAY: VariantType = _
Godot enumerator name: TYPE_PACKED_FLOAT32_ARRAY
pub const PACKED_FLOAT64_ARRAY: VariantType = _
pub const PACKED_FLOAT64_ARRAY: VariantType = _
Godot enumerator name: TYPE_PACKED_FLOAT64_ARRAY
pub const PACKED_STRING_ARRAY: VariantType = _
pub const PACKED_STRING_ARRAY: VariantType = _
Godot enumerator name: TYPE_PACKED_STRING_ARRAY
pub const PACKED_VECTOR2_ARRAY: VariantType = _
pub const PACKED_VECTOR2_ARRAY: VariantType = _
Godot enumerator name: TYPE_PACKED_VECTOR2_ARRAY
pub const PACKED_VECTOR3_ARRAY: VariantType = _
pub const PACKED_VECTOR3_ARRAY: VariantType = _
Godot enumerator name: TYPE_PACKED_VECTOR3_ARRAY
pub const PACKED_COLOR_ARRAY: VariantType = _
pub const PACKED_COLOR_ARRAY: VariantType = _
Godot enumerator name: TYPE_PACKED_COLOR_ARRAY
pub const PACKED_VECTOR4_ARRAY: VariantType = _
pub const PACKED_VECTOR4_ARRAY: VariantType = _
Godot enumerator name: TYPE_PACKED_VECTOR4_ARRAY
pub const MAX: VariantType = _
pub const MAX: VariantType = _
Godot enumerator name: TYPE_MAX
Trait Implementations§
§impl Clone for VariantType
impl Clone for VariantType
§fn clone(&self) -> VariantType
fn clone(&self) -> VariantType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for VariantType
impl Debug for VariantType
§impl EngineEnum for VariantType
impl EngineEnum for VariantType
§impl FromGodot for VariantType
impl FromGodot for VariantType
§fn try_from_godot(
via: <VariantType as GodotConvert>::Via,
) -> Result<VariantType, ConvertError>
fn try_from_godot( via: <VariantType as GodotConvert>::Via, ) -> Result<VariantType, ConvertError>
Err
on failure.§fn from_godot(via: Self::Via) -> Self
fn from_godot(via: Self::Via) -> Self
§fn try_from_variant(variant: &Variant) -> Result<Self, ConvertError>
fn try_from_variant(variant: &Variant) -> Result<Self, ConvertError>
Variant
, returning Err
on failure.§fn from_variant(variant: &Variant) -> Self
fn from_variant(variant: &Variant) -> Self
§impl GodotConvert for VariantType
impl GodotConvert for VariantType
§impl Hash for VariantType
impl Hash for VariantType
§impl IndexEnum for VariantType
impl IndexEnum for VariantType
§impl PartialEq for VariantType
impl PartialEq for VariantType
§impl ToGodot for VariantType
impl ToGodot for VariantType
§type ToVia<'v> = i32
type ToVia<'v> = i32
to_godot()
, which differs from Via
for pass-by-reference types.§fn to_godot(&self) -> <VariantType as ToGodot>::ToVia<'_>
fn to_godot(&self) -> <VariantType as ToGodot>::ToVia<'_>
§fn to_variant(&self) -> Variant
fn to_variant(&self) -> Variant
impl Copy for VariantType
impl Eq for VariantType
impl StructuralPartialEq for VariantType
Auto Trait Implementations§
impl Freeze for VariantType
impl RefUnwindSafe for VariantType
impl Send for VariantType
impl Sync for VariantType
impl Unpin for VariantType
impl UnwindSafe for VariantType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)