pub trait SerializeCommitment {
const SERIALIZED_SIZE: usize;
// Required method
fn serialize_commitment(&self, buffer: &mut [u8]);
}
Expand description
Type that can be serialized for commitment.
Required Associated Constants§
Sourceconst SERIALIZED_SIZE: usize
const SERIALIZED_SIZE: usize
Size of the structure in bytes.
Required Methods§
Sourcefn serialize_commitment(&self, buffer: &mut [u8])
fn serialize_commitment(&self, buffer: &mut [u8])
Serializes this struct into the provided buffer, which is guaranteed to have byte length
Self::SERIALIZED_SIZE
.
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.