pub trait SerDes: Sized {
// Required methods
fn serialize<W: Write>(
&self,
writer: &mut W,
compressed: bool,
) -> Result<()>;
fn deserialize<R: Read>(reader: &mut R, compressed: bool) -> Result<Self>;
}
Expand description
Serialization support for group elements.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.