pub trait Serialize<const N: usize> {
    // Required method
    fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
       where S: Serializer;
}
Expand description

Trait for serialization of types which can be referenced as fixed-size byte arrays.

Required Methods§

source

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize self using the provided Serializer.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<const N: usize> Serialize<N> for [u8; N]

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Implementors§