Struct yy_typings::object_yy::EventIntermediary [−][src]
pub struct EventIntermediary { /* fields omitted */ }
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
fn 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
type Error = EventTypeConvertErrors
type Error = EventTypeConvertErrors
The type returned in the event of a conversion error.
Performs the conversion.
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
Mutably borrows from an owned value. Read more