mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-04 02:24:12 +02:00
propnames
This commit is contained in:
parent
5976b43d56
commit
b8d3540069
9 changed files with 5643 additions and 88 deletions
|
|
@ -38,6 +38,18 @@ impl From<u32> for EntityId {
|
|||
}
|
||||
}
|
||||
|
||||
impl From<EntityId> for u32 {
|
||||
fn from(id: EntityId) -> Self {
|
||||
id.0
|
||||
}
|
||||
}
|
||||
|
||||
impl PartialEq<u32> for EntityId {
|
||||
fn eq(&self, other: &u32) -> bool {
|
||||
self.0 == *other
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
|
||||
#[derive(
|
||||
BitRead, BitWrite, Clone, Copy, Debug, PartialEq, Eq, Serialize_repr, Deserialize_repr,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue