pub trait Monoid:
Copy
+ PartialEq
+ Debug {
const IDENTITY: Self;
// Required methods
fn combine(self, other: Self) -> Self;
fn to_acc_bytes(&self) -> [u8; 64];
fn from_acc_bytes(b: &[u8; 64]) -> Self;
}Required Associated Constants§
Required Methods§
fn combine(self, other: Self) -> Self
Sourcefn to_acc_bytes(&self) -> [u8; 64]
fn to_acc_bytes(&self) -> [u8; 64]
Serialize into the 64-byte acc window (LE, zero-pad the tail).
Sourcefn from_acc_bytes(b: &[u8; 64]) -> Self
fn from_acc_bytes(b: &[u8; 64]) -> Self
Deserialize from the 64-byte acc window. Must round-trip to_acc_bytes.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".