setting up facets

This commit is contained in:
mpostma 2020-05-05 22:19:34 +02:00
parent dd08cfc6a3
commit 59c67f6bc8
11 changed files with 633 additions and 139 deletions

View file

@ -36,7 +36,10 @@ impl Into<u16> for IndexedPos {
}
}
#[derive(Serialize, Deserialize, Debug, Copy, Clone, Default, PartialOrd, Ord, PartialEq, Eq, Hash)]
#[derive(Debug, Copy, Clone, Default, PartialOrd, Ord, PartialEq, Eq, Hash)]
#[derive(Serialize, Deserialize)]
#[derive(AsBytes, FromBytes)]
#[repr(C)]
pub struct FieldId(pub u16);
impl FieldId {
@ -63,8 +66,8 @@ impl From<u16> for FieldId {
}
}
impl Into<u16> for FieldId {
fn into(self) -> u16 {
self.0
impl From<FieldId> for u16 {
fn from(other: FieldId) -> u16 {
other.0
}
}