Trait rapier2d::data::ComponentSetOption[][src]

pub trait ComponentSetOption<T>: Sync {
    fn get(&self, handle: Index) -> Option<&T>;
}
Expand description

A set of optional elements of type T.

Required methods

fn get(&self, handle: Index) -> Option<&T>[src]

Get the element associated to the given handle, if there is one.

Implementors

impl ComponentSetOption<RigidBodyType> for RigidBodySet[src]

fn get(&self, handle: Index) -> Option<&RigidBodyType>[src]

impl ComponentSetOption<ColliderMassProps> for ColliderSet[src]

fn get(&self, handle: Index) -> Option<&ColliderMassProps>[src]

impl ComponentSetOption<ColliderType> for ColliderSet[src]

fn get(&self, handle: Index) -> Option<&ColliderType>[src]

impl ComponentSetOption<RigidBodyActivation> for RigidBodySet[src]

fn get(&self, handle: Index) -> Option<&RigidBodyActivation>[src]

impl ComponentSetOption<RigidBodyCcd> for RigidBodySet[src]

fn get(&self, handle: Index) -> Option<&RigidBodyCcd>[src]

impl ComponentSetOption<RigidBodyChanges> for RigidBodySet[src]

fn get(&self, handle: Index) -> Option<&RigidBodyChanges>[src]

impl ComponentSetOption<RigidBodyColliders> for RigidBodySet[src]

fn get(&self, handle: Index) -> Option<&RigidBodyColliders>[src]

impl ComponentSetOption<RigidBodyDamping> for RigidBodySet[src]

fn get(&self, handle: Index) -> Option<&RigidBodyDamping>[src]

impl ComponentSetOption<RigidBodyDominance> for RigidBodySet[src]

fn get(&self, handle: Index) -> Option<&RigidBodyDominance>[src]

impl ComponentSetOption<RigidBodyForces> for RigidBodySet[src]

fn get(&self, handle: Index) -> Option<&RigidBodyForces>[src]

impl ComponentSetOption<RigidBodyIds> for RigidBodySet[src]

fn get(&self, handle: Index) -> Option<&RigidBodyIds>[src]

impl ComponentSetOption<RigidBodyMassProps> for RigidBodySet[src]

fn get(&self, handle: Index) -> Option<&RigidBodyMassProps>[src]

impl ComponentSetOption<RigidBodyPosition> for RigidBodySet[src]

fn get(&self, handle: Index) -> Option<&RigidBodyPosition>[src]

impl ComponentSetOption<RigidBodyVelocity> for RigidBodySet[src]

fn get(&self, handle: Index) -> Option<&RigidBodyVelocity>[src]

impl ComponentSetOption<ColliderBroadPhaseData> for ColliderSet[src]

impl ComponentSetOption<ColliderChanges> for ColliderSet[src]

fn get(&self, handle: Index) -> Option<&ColliderChanges>[src]

impl ComponentSetOption<ColliderFlags> for ColliderSet[src]

fn get(&self, handle: Index) -> Option<&ColliderFlags>[src]

impl ComponentSetOption<ColliderMaterial> for ColliderSet[src]

fn get(&self, handle: Index) -> Option<&ColliderMaterial>[src]

impl ComponentSetOption<ColliderParent> for ColliderSet[src]

fn get(&self, handle: Index) -> Option<&ColliderParent>[src]

impl ComponentSetOption<ColliderPosition> for ColliderSet[src]

fn get(&self, handle: Index) -> Option<&ColliderPosition>[src]

impl ComponentSetOption<SharedShape> for ColliderSet[src]

fn get(&self, handle: Index) -> Option<&ColliderShape>[src]