Trait rubble::bytes::RawRepr[][src]

pub trait RawRepr<T> {
    fn from_raw(raw: T) -> Self;
fn as_raw(&self) -> T; }
Expand description

Indicates that a type can be cheaply converted from and to a raw representation of type T.

This is meant to be used with Field, and allows representing types as their raw contents in memory, while allowing ergonomic conversion to their typed representation.

Required methods

Implementors