PartialEq LocalClientId u8

This commit is contained in:
jake 2021-12-10 13:20:20 -07:00
parent 3865caba8d
commit 5d410f88f3

View File

@ -109,6 +109,12 @@ impl LocalClientId {
}
}
impl PartialEq<u8> for LocalClientId {
fn eq(&self, other: &u8) -> bool {
self.0 == *other as usize
}
}
#[derive(Debug, Copy, Clone, PartialEq)]
pub struct AreaClient {
pub client: ClientId,