pub struct BodyParameter { /* private fields */ }Implementations§
Source§impl BodyParameter
impl BodyParameter
Sourcepub const BOUNCE: BodyParameter
pub const BOUNCE: BodyParameter
Godot enumerator name: BODY_PARAM_BOUNCE
Sourcepub const FRICTION: BodyParameter
pub const FRICTION: BodyParameter
Godot enumerator name: BODY_PARAM_FRICTION
Sourcepub const MASS: BodyParameter
pub const MASS: BodyParameter
Godot enumerator name: BODY_PARAM_MASS
Sourcepub const INERTIA: BodyParameter
pub const INERTIA: BodyParameter
Godot enumerator name: BODY_PARAM_INERTIA
Sourcepub const CENTER_OF_MASS: BodyParameter
pub const CENTER_OF_MASS: BodyParameter
Godot enumerator name: BODY_PARAM_CENTER_OF_MASS
Sourcepub const GRAVITY_SCALE: BodyParameter
pub const GRAVITY_SCALE: BodyParameter
Godot enumerator name: BODY_PARAM_GRAVITY_SCALE
Sourcepub const LINEAR_DAMP_MODE: BodyParameter
pub const LINEAR_DAMP_MODE: BodyParameter
Godot enumerator name: BODY_PARAM_LINEAR_DAMP_MODE
Sourcepub const ANGULAR_DAMP_MODE: BodyParameter
pub const ANGULAR_DAMP_MODE: BodyParameter
Godot enumerator name: BODY_PARAM_ANGULAR_DAMP_MODE
Sourcepub const LINEAR_DAMP: BodyParameter
pub const LINEAR_DAMP: BodyParameter
Godot enumerator name: BODY_PARAM_LINEAR_DAMP
Sourcepub const ANGULAR_DAMP: BodyParameter
pub const ANGULAR_DAMP: BodyParameter
Godot enumerator name: BODY_PARAM_ANGULAR_DAMP
Sourcepub const MAX: BodyParameter
pub const MAX: BodyParameter
Godot enumerator name: BODY_PARAM_MAX
Trait Implementations§
Source§impl Clone for BodyParameter
impl Clone for BodyParameter
Source§fn clone(&self) -> BodyParameter
fn clone(&self) -> BodyParameter
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 moreSource§impl Debug for BodyParameter
impl Debug for BodyParameter
Source§impl EngineEnum for BodyParameter
impl EngineEnum for BodyParameter
fn try_from_ord(ord: i32) -> Option<BodyParameter>
Source§fn ord(self) -> i32
fn ord(self) -> i32
Ordinal value of the enumerator, as specified in Godot.
This is not necessarily unique.
Source§fn values() -> &'static [BodyParameter]
fn values() -> &'static [BodyParameter]
Returns a slice of distinct enum values. Read more
Source§fn all_constants() -> &'static [EnumConstant<BodyParameter>]
fn all_constants() -> &'static [EnumConstant<BodyParameter>]
Returns metadata for all enum constants. Read more
fn from_ord(ord: i32) -> Self
Source§impl FromGodot for BodyParameter
impl FromGodot for BodyParameter
Source§fn try_from_godot(
via: <BodyParameter as GodotConvert>::Via,
) -> Result<BodyParameter, ConvertError>
fn try_from_godot( via: <BodyParameter as GodotConvert>::Via, ) -> Result<BodyParameter, ConvertError>
Converts the Godot representation to this type, returning
Err on failure.Source§fn from_godot(via: Self::Via) -> Self
fn from_godot(via: Self::Via) -> Self
⚠️ Converts the Godot representation to this type. Read more
Source§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.Source§impl GodotConvert for BodyParameter
impl GodotConvert for BodyParameter
Source§fn godot_shape() -> GodotShape
fn godot_shape() -> GodotShape
Which “shape” this type has for property registration (e.g. builtin, enum, …). Read more
Source§impl Hash for BodyParameter
impl Hash for BodyParameter
Source§impl IndexEnum for BodyParameter
impl IndexEnum for BodyParameter
Source§impl PartialEq for BodyParameter
impl PartialEq for BodyParameter
Source§impl ToGodot for BodyParameter
impl ToGodot for BodyParameter
Source§type Pass = ByValue
type Pass = ByValue
Whether arguments of this type are passed by value or by reference. Read more
Source§fn to_godot(&self) -> <BodyParameter as GodotConvert>::Via
fn to_godot(&self) -> <BodyParameter as GodotConvert>::Via
Converts this type to Godot representation, optimizing for zero-copy when possible. Read more
Source§fn to_godot_owned(&self) -> Self::Via
fn to_godot_owned(&self) -> Self::Via
Converts this type to owned Godot representation. Read more
Source§fn to_variant(&self) -> Variant
fn to_variant(&self) -> Variant
Converts this type to a Variant.
Source§impl Var for BodyParameter
impl Var for BodyParameter
Source§type PubType = BodyParameter
type PubType = BodyParameter
Type used in generated Rust getters/setters for
#[var(pub)].Source§fn var_get(field: &BodyParameter) -> <BodyParameter as GodotConvert>::Via
fn var_get(field: &BodyParameter) -> <BodyParameter as GodotConvert>::Via
Get property value via FFI-level
Via type. Called for internal (non-pub) getters registered with Godot.Source§fn var_set(
field: &mut BodyParameter,
value: <BodyParameter as GodotConvert>::Via,
)
fn var_set( field: &mut BodyParameter, value: <BodyParameter as GodotConvert>::Via, )
Set property value via FFI-level
Via type. Called for internal (non-pub) setters registered with Godot.Source§fn var_pub_get(field: &BodyParameter) -> <BodyParameter as Var>::PubType
fn var_pub_get(field: &BodyParameter) -> <BodyParameter as Var>::PubType
Get property value as
PubType. Called for #[var(pub)] getters exposed in Rust API.Source§fn var_pub_set(
field: &mut BodyParameter,
value: <BodyParameter as Var>::PubType,
)
fn var_pub_set( field: &mut BodyParameter, value: <BodyParameter as Var>::PubType, )
Set property value as
PubType. Called for #[var(pub)] setters exposed in Rust API.impl Copy for BodyParameter
impl Element for BodyParameter
impl Eq for BodyParameter
impl Export for BodyParameter
impl StructuralPartialEq for BodyParameter
Auto Trait Implementations§
impl Freeze for BodyParameter
impl RefUnwindSafe for BodyParameter
impl Send for BodyParameter
impl Sync for BodyParameter
impl Unpin for BodyParameter
impl UnsafeUnpin for BodyParameter
impl UnwindSafe for BodyParameter
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