WrappedPod

Trait WrappedPod 

Source
pub trait WrappedPod<'a>: Sized {
    // Required methods
    fn export(&self, buffer: &mut Vec<u8>);
    fn size(&self) -> usize;
    fn from_bytes(buffer: &'a [u8]) -> Self;

    // Provided method
    fn try_from_bytes(buffer: &'a [u8]) -> Result<Self, Error> { ... }
}

Required Methods§

Source

fn export(&self, buffer: &mut Vec<u8>)

Source

fn size(&self) -> usize

Source

fn from_bytes(buffer: &'a [u8]) -> Self

Provided Methods§

Source

fn try_from_bytes(buffer: &'a [u8]) -> Result<Self, Error>

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.

Implementors§