Struct InstanceType
pub struct InstanceType { /* private fields */ }Implementations§
§impl InstanceType
impl InstanceType
pub const NONE: InstanceType
pub const NONE: InstanceType
Godot enumerator name: INSTANCE_NONE
pub const MESH: InstanceType
pub const MESH: InstanceType
Godot enumerator name: INSTANCE_MESH
pub const MULTIMESH: InstanceType
pub const MULTIMESH: InstanceType
Godot enumerator name: INSTANCE_MULTIMESH
pub const PARTICLES: InstanceType
pub const PARTICLES: InstanceType
Godot enumerator name: INSTANCE_PARTICLES
pub const PARTICLES_COLLISION: InstanceType
pub const PARTICLES_COLLISION: InstanceType
Godot enumerator name: INSTANCE_PARTICLES_COLLISION
pub const LIGHT: InstanceType
pub const LIGHT: InstanceType
Godot enumerator name: INSTANCE_LIGHT
pub const REFLECTION_PROBE: InstanceType
pub const REFLECTION_PROBE: InstanceType
Godot enumerator name: INSTANCE_REFLECTION_PROBE
pub const DECAL: InstanceType
pub const DECAL: InstanceType
Godot enumerator name: INSTANCE_DECAL
pub const VOXEL_GI: InstanceType
pub const VOXEL_GI: InstanceType
Godot enumerator name: INSTANCE_VOXEL_GI
pub const LIGHTMAP: InstanceType
pub const LIGHTMAP: InstanceType
Godot enumerator name: INSTANCE_LIGHTMAP
pub const OCCLUDER: InstanceType
pub const OCCLUDER: InstanceType
Godot enumerator name: INSTANCE_OCCLUDER
pub const VISIBLITY_NOTIFIER: InstanceType
pub const VISIBLITY_NOTIFIER: InstanceType
Godot enumerator name: INSTANCE_VISIBLITY_NOTIFIER
pub const FOG_VOLUME: InstanceType
pub const FOG_VOLUME: InstanceType
Godot enumerator name: INSTANCE_FOG_VOLUME
pub const MAX: InstanceType
pub const MAX: InstanceType
Godot enumerator name: INSTANCE_MAX
pub const GEOMETRY_MASK: InstanceType
pub const GEOMETRY_MASK: InstanceType
Godot enumerator name: INSTANCE_GEOMETRY_MASK
Trait Implementations§
§impl Clone for InstanceType
impl Clone for InstanceType
§fn clone(&self) -> InstanceType
fn clone(&self) -> InstanceType
Returns a duplicate 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 more§impl Debug for InstanceType
impl Debug for InstanceType
§impl EngineEnum for InstanceType
impl EngineEnum for InstanceType
fn try_from_ord(ord: i32) -> Option<InstanceType>
§fn ord(self) -> i32
fn ord(self) -> i32
Ordinal value of the enumerator, as specified in Godot.
This is not necessarily unique.
§fn values() -> &'static [InstanceType]
fn values() -> &'static [InstanceType]
Returns a slice of distinct enum values. Read more
§fn all_constants() -> &'static [EnumConstant<InstanceType>]
fn all_constants() -> &'static [EnumConstant<InstanceType>]
Returns metadata for all enum constants. Read more
fn from_ord(ord: i32) -> Self
§impl Export for InstanceType
impl Export for InstanceType
§fn export_hint() -> PropertyHintInfo
fn export_hint() -> PropertyHintInfo
The export info to use for an exported field of this type, if no other export info is specified.
§impl FromGodot for InstanceType
impl FromGodot for InstanceType
§fn try_from_godot(
via: <InstanceType as GodotConvert>::Via,
) -> Result<InstanceType, ConvertError>
fn try_from_godot( via: <InstanceType as GodotConvert>::Via, ) -> Result<InstanceType, ConvertError>
Converts the Godot representation to this type, returning
Err on failure.§fn from_godot(via: Self::Via) -> Self
fn from_godot(via: Self::Via) -> Self
⚠️ Converts the Godot representation to this type. Read more
§fn try_from_variant(variant: &Variant) -> Result<Self, ConvertError>
fn try_from_variant(variant: &Variant) -> Result<Self, ConvertError>
Performs the conversion from a
Variant, returning Err on failure.§fn from_variant(variant: &Variant) -> Self
fn from_variant(variant: &Variant) -> Self
§impl GodotConvert for InstanceType
impl GodotConvert for InstanceType
§impl Hash for InstanceType
impl Hash for InstanceType
§impl PartialEq for InstanceType
impl PartialEq for InstanceType
§impl ToGodot for InstanceType
impl ToGodot for InstanceType
§fn to_godot(&self) -> <InstanceType as GodotConvert>::Via
fn to_godot(&self) -> <InstanceType as GodotConvert>::Via
Converts this type to Godot representation, optimizing for zero-copy when possible. Read more
§fn to_godot_owned(&self) -> Self::Via
fn to_godot_owned(&self) -> Self::Via
Converts this type to owned Godot representation. Read more
§fn to_variant(&self) -> Variant
fn to_variant(&self) -> Variant
Converts this type to a Variant.
§impl Var for InstanceType
impl Var for InstanceType
§type PubType = InstanceType
type PubType = InstanceType
Type used in generated Rust getters/setters for
#[var(pub)].§fn var_get(field: &InstanceType) -> <InstanceType as GodotConvert>::Via
fn var_get(field: &InstanceType) -> <InstanceType as GodotConvert>::Via
Get property value. Called when reading a property from Godot.
§fn var_set(field: &mut InstanceType, value: <InstanceType as GodotConvert>::Via)
fn var_set(field: &mut InstanceType, value: <InstanceType as GodotConvert>::Via)
Set property value. Called when writing a property from Godot.
§fn var_pub_get(field: &InstanceType) -> <InstanceType as Var>::PubType
fn var_pub_get(field: &InstanceType) -> <InstanceType as Var>::PubType
Get property value in a Rust auto-generated getter, for fields annotated with
#[var(pub)].§fn var_pub_set(field: &mut InstanceType, value: <InstanceType as Var>::PubType)
fn var_pub_set(field: &mut InstanceType, value: <InstanceType as Var>::PubType)
Set property value in a Rust auto-generated setter, for fields annotated with
#[var(pub)].§fn var_hint() -> PropertyHintInfo
fn var_hint() -> PropertyHintInfo
Specific property hints. Only override if they deviate from
GodotType::property_info, e.g. for enums/newtypes.impl Copy for InstanceType
impl Eq for InstanceType
impl StructuralPartialEq for InstanceType
Auto Trait Implementations§
impl Freeze for InstanceType
impl RefUnwindSafe for InstanceType
impl Send for InstanceType
impl Sync for InstanceType
impl Unpin for InstanceType
impl UnwindSafe for InstanceType
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
Mutably borrows from an owned value. Read more