mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 18:24:05 +02:00
usermessagetype eq
This commit is contained in:
parent
e7dec55453
commit
d36a5516e5
1 changed files with 6 additions and 0 deletions
|
|
@ -71,6 +71,12 @@ pub enum UserMessageType {
|
||||||
Unknown = 255,
|
Unknown = 255,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl PartialEq<u8> for UserMessageType {
|
||||||
|
fn eq(&self, other: &u8) -> bool {
|
||||||
|
*self as u8 == *other
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
|
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
|
||||||
#[derive(Debug, PartialEq, Serialize, Deserialize, Clone)]
|
#[derive(Debug, PartialEq, Serialize, Deserialize, Clone)]
|
||||||
#[serde(bound(deserialize = "'a: 'static"))]
|
#[serde(bound(deserialize = "'a: 'static"))]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue