Struct yy_typings::object_yy::EventIntermediary
source · [−]pub struct EventIntermediary { /* private fields */ }
Expand description
A simpler, less idiomatic and less understandable, but more direct,
representation of Gms2 event types and numbers. We use this internally in
the serde of the higher level EventType
enum, which is also given.
This struct is made public largely so non-Rust applications downstream can
have an easier interface to work with. Rust applications are encouraged to
stick with the more idiomatic and user-friendly EventType
, which is far
more type safe while being equally performant.
Trait Implementations
sourceimpl Clone for EventIntermediary
impl Clone for EventIntermediary
sourcefn clone(&self) -> EventIntermediary
fn clone(&self) -> EventIntermediary
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 EventIntermediary
impl Debug for EventIntermediary
sourceimpl Default for EventIntermediary
impl Default for EventIntermediary
sourceimpl<'de> Deserialize<'de> for EventIntermediary
impl<'de> Deserialize<'de> for EventIntermediary
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 From<EventType> for EventIntermediary
impl From<EventType> for EventIntermediary
sourceimpl Hash for EventIntermediary
impl Hash for EventIntermediary
sourceimpl Ord for EventIntermediary
impl Ord for EventIntermediary
sourcefn cmp(&self, other: &EventIntermediary) -> Ordering
fn cmp(&self, other: &EventIntermediary) -> 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<EventIntermediary> for EventIntermediary
impl PartialEq<EventIntermediary> for EventIntermediary
sourcefn eq(&self, other: &EventIntermediary) -> bool
fn eq(&self, other: &EventIntermediary) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl PartialOrd<EventIntermediary> for EventIntermediary
impl PartialOrd<EventIntermediary> for EventIntermediary
sourcefn partial_cmp(&self, other: &EventIntermediary) -> Option<Ordering>
fn partial_cmp(&self, other: &EventIntermediary) -> 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 EventIntermediary
impl Serialize for EventIntermediary
sourceimpl TryFrom<EventIntermediary> for EventType
impl TryFrom<EventIntermediary> for EventType
type Error = EventTypeConvertErrors
type Error = EventTypeConvertErrors
The type returned in the event of a conversion error.
sourcefn try_from(o: EventIntermediary) -> Result<Self, Self::Error>
fn try_from(o: EventIntermediary) -> Result<Self, Self::Error>
Performs the conversion.
impl Copy for EventIntermediary
impl Eq for EventIntermediary
impl StructuralEq for EventIntermediary
impl StructuralPartialEq for EventIntermediary
Auto Trait Implementations
impl RefUnwindSafe for EventIntermediary
impl Send for EventIntermediary
impl Sync for EventIntermediary
impl Unpin for EventIntermediary
impl UnwindSafe for EventIntermediary
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