#[repr(transparent)]
pub struct PxMaterial<U> { /* private fields */ }
Expand description

A new type wrapper for PxMaterial. Parametrized by it’s user data type.

Trait Implementations

Returns a raw const pointer to the wrapped type. Retrieving a raw pointer is safe. However, pretty much any use of a raw pointer is unsafe. In particular: this pointer should not be used to construct a second owning wrapper around the pointer. Read more
Returns a raw mut pointer to the wrapped type. Retrieving a raw pointer is safe. However, pretty much any use of a raw pointer is unsafe. In particular: this pointer should not be used to construct a second owning wrapper around the pointer. Read more
Executes the destructor for this type. Read more
Safety Read more
Get a reference to the user data.
Get a mutable reference to the user data.
Get the current ref count of the material.
Increment the ref count of the material.
Set the dynamic friction. Read more
Get the dynamic friction.
Set the static friction. Read more
Get the static frction.
Set the restitution. Read more
Get the restitution.
Set a material flag.
Set all the material flags.
Get the material flags.
Set the friction combine mode.
Get the friction combine mode.
Set the restitution combine mode.
Get the restitution combine mode.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Get the name of the real type referenced by this pointer, or None if the returned string is not valid
Returns an enumerated value identifying the type. This may return ConcreteType::Undefined in surprising situations, notably this does not seem to work with get_active_actors. Use get_type for actors if possible. Read more
Set or unset the specified flag on this object.
Set the BaseFlags of this object. Note that replaces all flags currently on the object. Use set_base_flag to set individual flags. Read more
Read the BaseFlags of this object
Returns true if this object can be released, i.e., it is not subordinate.
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.