Skip to main content

b2RayCastCallbackWrapper

Struct b2RayCastCallbackWrapper 

Source
pub struct b2RayCastCallbackWrapper { /* private fields */ }

Implementations§

Trait Implementations§

Source§

impl AsRef<b2RayCastCallback> for b2RayCastCallbackWrapper

Source§

fn as_ref(&self) -> &b2RayCastCallback

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl CppPeerConstructor<b2RayCastCallbackWrapperCpp> for b2RayCastCallbackWrapper

Source§

fn make_peer( &mut self, peer_holder: CppSubclassRustPeerHolder<Self>, ) -> UniquePtr<b2RayCastCallbackWrapperCpp>

Create the C++ peer. This method will be automatically generated for you except in cases where the superclass has multiple constructors, or its only constructor takes parameters. In such a case you’ll need to implement this by calling a make_unique method on the <my subclass name>Cpp type, passing peer_holder as the first argument.
Source§

impl CppSubclass<b2RayCastCallbackWrapperCpp> for b2RayCastCallbackWrapper

Source§

fn peer_holder(&self) -> &CppSubclassCppPeerHolder<b2RayCastCallbackWrapperCpp>

Return the field which holds the C++ peer object. This is normally implemented by the #is_subclass macro, but you’re welcome to implement it yourself if you prefer.
Source§

fn peer_holder_mut( &mut self, ) -> &mut CppSubclassCppPeerHolder<b2RayCastCallbackWrapperCpp>

Return the field which holds the C++ peer object. This is normally implemented by the #is_subclass macro, but you’re welcome to implement it yourself if you prefer.
Source§

fn peer(&self) -> &CppPeer

Return a reference to the C++ part of this object pair. This can be used to register listeners, etc.
Source§

fn peer_mut(&mut self) -> Pin<&mut CppPeer>

Return a mutable reference to the C++ part of this object pair. This can be used to register listeners, etc.
Source§

fn new_cpp_owned(me: Self) -> UniquePtr<CppPeer>

Creates a new instance of this subclass. This instance is owned by the returned cxx::UniquePtr and thus would typically be returned immediately to C++ such that it can be owned on the C++ side.
Source§

fn new_rust_owned(me: Self) -> Rc<RefCell<Self>>

Creates a new instance of this subclass. This instance is not owned by C++, and therefore will be deleted when it goes out of scope in Rust.
Source§

impl b2RayCastCallback_methods for b2RayCastCallbackWrapper

Source§

unsafe fn ReportFixture( &mut self, fixture: *mut b2Fixture, point: &b2Vec2, normal: &b2Vec2, fraction: f32, ) -> f32

Source§

unsafe fn ReportParticle( &mut self, particle_system: *const b2ParticleSystem, index: c_int, point: &b2Vec2, normal: &b2Vec2, fraction: f32, ) -> f32

Source§

unsafe fn ShouldQueryParticleSystem( &mut self, particle_system: *const b2ParticleSystem, ) -> bool

Source§

impl b2RayCastCallback_supers for b2RayCastCallbackWrapper

Source§

unsafe fn ReportParticle_super( &mut self, particleSystem: *const b2ParticleSystem, index: c_int, point: &b2Vec2, normal: &b2Vec2, fraction: f32, ) -> f32

Source§

unsafe fn ShouldQueryParticleSystem_super( &mut self, particleSystem: *const b2ParticleSystem, ) -> bool

Auto Trait Implementations§

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.