Skip to main content

RigidStaticDescriptor

Struct RigidStaticDescriptor 

Source
pub struct RigidStaticDescriptor<'a, U, G: Geometry, M: Material> {
    pub transform: PxTransform,
    pub geometry: &'a G,
    pub material: &'a mut M,
    pub shape_transform: PxTransform,
    pub user_data: U,
}

Fields§

§transform: PxTransform§geometry: &'a G§material: &'a mut M§shape_transform: PxTransform§user_data: U

Trait Implementations§

Source§

impl<P: Physics, U, G: Geometry> Descriptor<P> for RigidStaticDescriptor<'_, U, G, <P::Shape as Shape>::Material>

Source§

type Target = Option<Owner<PxRigidStatic<U, <P as Physics>::Shape>>>

Source§

fn create(self, creator: &mut P) -> Self::Target

Auto Trait Implementations§

§

impl<'a, U, G, M> !UnwindSafe for RigidStaticDescriptor<'a, U, G, M>

§

impl<'a, U, G, M> Freeze for RigidStaticDescriptor<'a, U, G, M>
where U: Freeze,

§

impl<'a, U, G, M> RefUnwindSafe for RigidStaticDescriptor<'a, U, G, M>

§

impl<'a, U, G, M> Send for RigidStaticDescriptor<'a, U, G, M>
where U: Send, G: Sync, M: Send,

§

impl<'a, U, G, M> Sync for RigidStaticDescriptor<'a, U, G, M>
where U: Sync, G: Sync, M: Sync,

§

impl<'a, U, G, M> Unpin for RigidStaticDescriptor<'a, U, G, M>
where U: Unpin,

§

impl<'a, U, G, M> UnsafeUnpin for RigidStaticDescriptor<'a, U, G, M>
where U: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.