pub trait ArrayEncoding<T> {
// Required method
fn as_byte_array(&self) -> &T;
}Expand description
Work around the inability to implement AsRef for arrays of Encodings
due to the coherence rules.
Required Methods§
fn as_byte_array(&self) -> &T
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".