pub struct b2RayCastCallbackWrapper { /* private fields */ }Implementations§
Source§impl b2RayCastCallbackWrapper
impl b2RayCastCallbackWrapper
pub fn pin_mut(&mut self) -> Pin<&mut b2RayCastCallback>
Trait Implementations§
Source§impl AsRef<b2RayCastCallback> for b2RayCastCallbackWrapper
impl AsRef<b2RayCastCallback> for b2RayCastCallbackWrapper
Source§fn as_ref(&self) -> &b2RayCastCallback
fn as_ref(&self) -> &b2RayCastCallback
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl CppPeerConstructor<b2RayCastCallbackWrapperCpp> for b2RayCastCallbackWrapper
impl CppPeerConstructor<b2RayCastCallbackWrapperCpp> for b2RayCastCallbackWrapper
Source§fn make_peer(
&mut self,
peer_holder: CppSubclassRustPeerHolder<Self>,
) -> UniquePtr<b2RayCastCallbackWrapperCpp>
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
impl CppSubclass<b2RayCastCallbackWrapperCpp> for b2RayCastCallbackWrapper
Source§fn peer_holder(&self) -> &CppSubclassCppPeerHolder<b2RayCastCallbackWrapperCpp>
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>
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
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>
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>
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>>
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
impl b2RayCastCallback_methods for b2RayCastCallbackWrapper
unsafe fn ReportFixture( &mut self, fixture: *mut b2Fixture, point: &b2Vec2, normal: &b2Vec2, fraction: f32, ) -> f32
unsafe fn ReportParticle( &mut self, particle_system: *const b2ParticleSystem, index: c_int, point: &b2Vec2, normal: &b2Vec2, fraction: f32, ) -> f32
unsafe fn ShouldQueryParticleSystem( &mut self, particle_system: *const b2ParticleSystem, ) -> bool
Source§impl b2RayCastCallback_supers for b2RayCastCallbackWrapper
impl b2RayCastCallback_supers for b2RayCastCallbackWrapper
unsafe fn ReportParticle_super( &mut self, particleSystem: *const b2ParticleSystem, index: c_int, point: &b2Vec2, normal: &b2Vec2, fraction: f32, ) -> f32
unsafe fn ShouldQueryParticleSystem_super( &mut self, particleSystem: *const b2ParticleSystem, ) -> bool
Auto Trait Implementations§
impl !RefUnwindSafe for b2RayCastCallbackWrapper
impl !Send for b2RayCastCallbackWrapper
impl !Sync for b2RayCastCallbackWrapper
impl !UnwindSafe for b2RayCastCallbackWrapper
impl Freeze for b2RayCastCallbackWrapper
impl Unpin for b2RayCastCallbackWrapper
impl UnsafeUnpin for b2RayCastCallbackWrapper
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more