#[repr(C)]pub struct OnTrigger {
pub entity: EntityHandle,
pub other: EntityHandle,
pub event: TriggerEvent,
pub _pad: u32,
}
Expand description
Information about an entity touching or leaving a trigger volume.
Fields§
§entity: EntityHandle
§other: EntityHandle
§event: TriggerEvent
§_pad: u32
Trait Implementations§
Source§impl CheckedBitPattern for OnTrigger
impl CheckedBitPattern for OnTrigger
Source§type Bits = OnTriggerBits
type Bits = OnTriggerBits
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(bits: &OnTriggerBits) -> bool
fn is_valid_bit_pattern(bits: &OnTriggerBits) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.impl Copy for OnTrigger
impl NoUninit for OnTrigger
Auto Trait Implementations§
impl Freeze for OnTrigger
impl RefUnwindSafe for OnTrigger
impl Send for OnTrigger
impl Sync for OnTrigger
impl Unpin for OnTrigger
impl UnwindSafe for OnTrigger
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