use crate::num::Mpz;
use std::hash::{Hash, Hasher};
#[allow(clippy::stutter)]
#[derive(Debug)]
pub struct ClassElem {
pub a: Mpz,
pub b: Mpz,
pub c: Mpz,
}
impl ClassElem {
fn to_bytes(&self) -> Vec<u8> {
let mut buf = Vec::new();
buf
}
}
impl Default for ClassElem {
fn default() -> Self {
ClassElem {
a: Mpz::default(),
b: Mpz::default(),
c: Mpz::default(),
}
}
}
impl Clone for ClassElem {
fn clone(&self) -> Self {
let mut ret = ClassElem::default();
ret.a = self.a.clone();
ret.b = self.b.clone();
ret.c = self.c.clone();
ret
}
}
impl PartialEq for ClassElem {
fn eq(&self, other: &ClassElem) -> bool {
self.a == other.a && self.b == other.b && self.c == other.c
}
}
impl Hash for ClassElem {
fn hash<H: Hasher>(&self, state: &mut H) {
self.a.hash(state);
self.b.hash(state);
self.c.hash(state);
}
}
impl Eq for ClassElem {}
unsafe impl Send for ClassElem {}
unsafe impl Sync for ClassElem {}