#[repr(transparent)]
pub struct PxFoundation<Allocator: AllocatorCallback> { /* private fields */ }
Expand description

A new type wrapper for PxFoundation. Parametrized by it’s Allocator 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
Tries to create a PxFoundation of the given version with the default allocator and error callbacks. Returns None if phys_PxCreateFoundation returns a null pointer. Read more
Tries to create a PxFoundation with the provided allocator and error callbacks. Returns None if phys_PxCreateFoundation returns a null pointer. Read more
Get the error callback.
Set the error level.
Get the error level.
Get the allocator callback.
Get whether allocation names are reported.
Set whether allocation names are reported.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
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.