Struct ComponentType
pub struct ComponentType { /* private fields */ }Implementations§
§impl ComponentType
impl ComponentType
pub const BOUNDED_2D: ComponentType
pub const BOUNDED_2D: ComponentType
Godot enumerator name: COMPONENT_TYPE_BOUNDED_2D
pub const BOUNDED_3D: ComponentType
pub const BOUNDED_3D: ComponentType
Godot enumerator name: COMPONENT_TYPE_BOUNDED_3D
pub const PARENT: ComponentType
pub const PARENT: ComponentType
Godot enumerator name: COMPONENT_TYPE_PARENT
pub const MESH_3D: ComponentType
pub const MESH_3D: ComponentType
Godot enumerator name: COMPONENT_TYPE_MESH_3D
pub const PLANE_ALIGNMENT: ComponentType
pub const PLANE_ALIGNMENT: ComponentType
Godot enumerator name: COMPONENT_TYPE_PLANE_ALIGNMENT
pub const MESH_2D: ComponentType
pub const MESH_2D: ComponentType
Godot enumerator name: COMPONENT_TYPE_MESH_2D
pub const POLYGON_2D: ComponentType
pub const POLYGON_2D: ComponentType
Godot enumerator name: COMPONENT_TYPE_POLYGON_2D
pub const PLANE_SEMANTIC_LABEL: ComponentType
pub const PLANE_SEMANTIC_LABEL: ComponentType
Godot enumerator name: COMPONENT_TYPE_PLANE_SEMANTIC_LABEL
pub const MARKER: ComponentType
pub const MARKER: ComponentType
Godot enumerator name: COMPONENT_TYPE_MARKER
pub const ANCHOR: ComponentType
pub const ANCHOR: ComponentType
Godot enumerator name: COMPONENT_TYPE_ANCHOR
pub const PERSISTENCE: ComponentType
pub const PERSISTENCE: ComponentType
Godot enumerator name: COMPONENT_TYPE_PERSISTENCE
Trait Implementations§
§impl Clone for ComponentType
impl Clone for ComponentType
§fn clone(&self) -> ComponentType
fn clone(&self) -> ComponentType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ComponentType
§impl Debug for ComponentType
impl Debug for ComponentType
impl Element for ComponentType
§impl EngineEnum for ComponentType
impl EngineEnum for ComponentType
fn try_from_ord(ord: i32) -> Option<ComponentType>
§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 [ComponentType]
fn values() -> &'static [ComponentType]
Returns a slice of distinct enum values. Read more
§fn all_constants() -> &'static [EnumConstant<ComponentType>]
fn all_constants() -> &'static [EnumConstant<ComponentType>]
Returns metadata for all enum constants. Read more
fn from_ord(ord: i32) -> Self
impl Eq for ComponentType
impl Export for ComponentType
§impl FromGodot for ComponentType
impl FromGodot for ComponentType
§fn try_from_godot(
via: <ComponentType as GodotConvert>::Via,
) -> Result<ComponentType, ConvertError>
fn try_from_godot( via: <ComponentType as GodotConvert>::Via, ) -> Result<ComponentType, 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 ComponentType
impl GodotConvert for ComponentType
§fn godot_shape() -> GodotShape
fn godot_shape() -> GodotShape
Which “shape” this type has for property registration (e.g. builtin, enum, …). Read more
§impl Hash for ComponentType
impl Hash for ComponentType
§impl PartialEq for ComponentType
impl PartialEq for ComponentType
impl StructuralPartialEq for ComponentType
§impl ToGodot for ComponentType
impl ToGodot for ComponentType
§fn to_godot(&self) -> <ComponentType as GodotConvert>::Via
fn to_godot(&self) -> <ComponentType 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 ComponentType
impl Var for ComponentType
§type PubType = ComponentType
type PubType = ComponentType
Type used in generated Rust getters/setters for
#[var(pub)].§fn var_get(field: &ComponentType) -> <ComponentType as GodotConvert>::Via
fn var_get(field: &ComponentType) -> <ComponentType as GodotConvert>::Via
Get property value via FFI-level
Via type. Called for internal (non-pub) getters registered with Godot.§fn var_set(
field: &mut ComponentType,
value: <ComponentType as GodotConvert>::Via,
)
fn var_set( field: &mut ComponentType, value: <ComponentType as GodotConvert>::Via, )
Set property value via FFI-level
Via type. Called for internal (non-pub) setters registered with Godot.§fn var_pub_get(field: &ComponentType) -> <ComponentType as Var>::PubType
fn var_pub_get(field: &ComponentType) -> <ComponentType as Var>::PubType
Get property value as
PubType. Called for #[var(pub)] getters exposed in Rust API.§fn var_pub_set(
field: &mut ComponentType,
value: <ComponentType as Var>::PubType,
)
fn var_pub_set( field: &mut ComponentType, value: <ComponentType as Var>::PubType, )
Set property value as
PubType. Called for #[var(pub)] setters exposed in Rust API.Auto Trait Implementations§
impl Freeze for ComponentType
impl RefUnwindSafe for ComponentType
impl Send for ComponentType
impl Sync for ComponentType
impl Unpin for ComponentType
impl UnsafeUnpin for ComponentType
impl UnwindSafe for ComponentType
Blanket Implementations§
impl<T> AsDirectElement<T> for T
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