Struct yy_typings::object_yy::ObjectEvent
source · [−]pub struct ObjectEvent {
pub common_data: CommonData<ConstGmEvent>,
pub is_dn_d: bool,
pub event_type: EventType,
pub collision_object_id: Option<FilesystemPath>,
}
Fields
common_data: CommonData<ConstGmEvent>
is_dn_d: bool
Is this event used in DragNDrop, the thing no one uses?
event_type: EventType
The type of the event. In the JSON, this is represented with two enums, but we use Serde to succesfully parse this into idiomatic Rust enums.
collision_object_id: Option<FilesystemPath>
The Id of the thing to collide with.
Trait Implementations
sourceimpl Clone for ObjectEvent
impl Clone for ObjectEvent
sourcefn clone(&self) -> ObjectEvent
fn clone(&self) -> ObjectEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ObjectEvent
impl Debug for ObjectEvent
sourceimpl Default for ObjectEvent
impl Default for ObjectEvent
sourceimpl<'de> Deserialize<'de> for ObjectEvent
impl<'de> Deserialize<'de> for ObjectEvent
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Ord for ObjectEvent
impl Ord for ObjectEvent
sourcefn cmp(&self, other: &ObjectEvent) -> Ordering
fn cmp(&self, other: &ObjectEvent) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ObjectEvent> for ObjectEvent
impl PartialEq<ObjectEvent> for ObjectEvent
sourcefn eq(&self, other: &ObjectEvent) -> bool
fn eq(&self, other: &ObjectEvent) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl PartialOrd<ObjectEvent> for ObjectEvent
impl PartialOrd<ObjectEvent> for ObjectEvent
sourcefn partial_cmp(&self, other: &ObjectEvent) -> Option<Ordering>
fn partial_cmp(&self, other: &ObjectEvent) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Serialize for ObjectEvent
impl Serialize for ObjectEvent
impl Eq for ObjectEvent
impl StructuralEq for ObjectEvent
impl StructuralPartialEq for ObjectEvent
Auto Trait Implementations
impl RefUnwindSafe for ObjectEvent
impl Send for ObjectEvent
impl Sync for ObjectEvent
impl Unpin for ObjectEvent
impl UnwindSafe for ObjectEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more