Enum gdnative::core_types::VariantType
source · pub enum VariantType {
Show 27 variants
Nil,
Bool,
I64,
F64,
GodotString,
Vector2,
Rect2,
Vector3,
Transform2D,
Plane,
Quat,
Aabb,
Basis,
Transform,
Color,
NodePath,
Rid,
Object,
Dictionary,
VariantArray,
ByteArray,
Int32Array,
Float32Array,
StringArray,
Vector2Array,
Vector3Array,
ColorArray,
}
Variants§
Nil
Bool
I64
F64
GodotString
Vector2
Rect2
Vector3
Transform2D
Plane
Quat
Aabb
Basis
Transform
Color
NodePath
Rid
Object
Dictionary
VariantArray
ByteArray
Int32Array
Float32Array
StringArray
Vector2Array
Vector3Array
ColorArray
Implementations§
source§impl VariantType
impl VariantType
sourcepub const NAMES: &'static [&'static str] = &["Nil", "Bool", "I64", "F64", "GodotString", "Vector2", "Rect2", "Vector3",
"Transform2D", "Plane", "Quat", "Aabb", "Basis", "Transform",
"Color", "NodePath", "Rid", "Object", "Dictionary",
"VariantArray", "ByteArray", "Int32Array", "Float32Array",
"StringArray", "Vector2Array", "Vector3Array", "ColorArray"]
pub const NAMES: &'static [&'static str] = &["Nil", "Bool", "I64", "F64", "GodotString", "Vector2", "Rect2", "Vector3", "Transform2D", "Plane", "Quat", "Aabb", "Basis", "Transform", "Color", "NodePath", "Rid", "Object", "Dictionary", "VariantArray", "ByteArray", "Int32Array", "Float32Array", "StringArray", "Vector2Array", "Vector3Array", "ColorArray"]
The potential names of VariantTypes. Mostly used for serialization.
Trait Implementations§
source§impl Clone for VariantType
impl Clone for VariantType
source§fn clone(&self) -> VariantType
fn clone(&self) -> VariantType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for VariantType
impl Debug for VariantType
source§impl<'de> Deserialize<'de> for VariantType
impl<'de> Deserialize<'de> for VariantType
source§fn deserialize<D>(
deserializer: D
) -> Result<VariantType, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<VariantType, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for VariantType
impl Hash for VariantType
source§impl PartialEq<VariantType> for VariantType
impl PartialEq<VariantType> for VariantType
source§fn eq(&self, other: &VariantType) -> bool
fn eq(&self, other: &VariantType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for VariantType
impl Eq for VariantType
impl StructuralEq for VariantType
impl StructuralPartialEq for VariantType
Auto Trait Implementations§
impl RefUnwindSafe for VariantType
impl Send for VariantType
impl Sync for VariantType
impl Unpin for VariantType
impl UnwindSafe for VariantType
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.