1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-04 18:44:12 +02:00

write DataTablePacket

This commit is contained in:
Robin Appelman 2021-07-18 16:40:25 +02:00
commit 67e1a3ef32
3 changed files with 140 additions and 10 deletions

View file

@ -59,7 +59,7 @@ impl From<&str> for SendPropName {
}
}
#[derive(Debug, Clone, PartialEq)]
#[derive(Debug, Clone)]
pub struct RawSendPropDefinition {
pub prop_type: SendPropType,
pub name: SendPropName,
@ -73,11 +73,11 @@ pub struct RawSendPropDefinition {
pub array_property: Option<Box<RawSendPropDefinition>>,
}
// impl PartialEq for RawSendPropDefinition {
// fn eq(&self, other: &Self) -> bool {
// self.identifier() == other.identifier()
// }
// }
impl PartialEq for RawSendPropDefinition {
fn eq(&self, other: &Self) -> bool {
self.identifier() == other.identifier()
}
}
impl fmt::Display for RawSendPropDefinition {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {