pub enum ProcessTimeCallback {
Collision(Collision),
Event(EventDetection),
}Expand description
A notification produced while advancing the simulation.
Notifications are returned by MWorld::advance_by_proper_time.
Variants§
Collision(Collision)
Two collision-enabled objects reached a collision.
Event(EventDetection)
An object or the observer detected a spacetime event - it means that event is inside past light cone of some object
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProcessTimeCallback
impl RefUnwindSafe for ProcessTimeCallback
impl Send for ProcessTimeCallback
impl Sync for ProcessTimeCallback
impl Unpin for ProcessTimeCallback
impl UnsafeUnpin for ProcessTimeCallback
impl UnwindSafe for ProcessTimeCallback
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more