[][src]Trait prototty_storage::StorageFormat

pub trait StorageFormat {
    type SerializeError;
    type DeserializeError;
    fn to_vec<T: ?Sized>(value: &T) -> Result<Vec<u8>, Self::SerializeError>
    where
        T: Serialize
;
fn from_slice<T>(v: &[u8]) -> Result<T, Self::DeserializeError>
    where
        T: DeserializeOwned
; }

Associated Types

Loading content...

Required methods

fn to_vec<T: ?Sized>(value: &T) -> Result<Vec<u8>, Self::SerializeError> where
    T: Serialize

fn from_slice<T>(v: &[u8]) -> Result<T, Self::DeserializeError> where
    T: DeserializeOwned

Loading content...

Implementors

Loading content...