Trait zip_core::raw::parse::Parse

source ·
pub trait Parse {
    type Error;

    // Required methods
    fn from_buf<T: Buf>(buf: &mut T) -> Result<Self, Self::Error>
       where Self: Sized;
    fn to_buf<T: BufMut>(&self, buf: &mut T) -> Result<(), Self::Error>;
}

Required Associated Types§

Required Methods§

source

fn from_buf<T: Buf>(buf: &mut T) -> Result<Self, Self::Error>
where Self: Sized,

parsing this Type from a buf, returning either the Type or an Error. implementations must not modify the buf in case of an error.

source

fn to_buf<T: BufMut>(&self, buf: &mut T) -> Result<(), Self::Error>

writing self to a buffer. implementation must not modify the buf in case of an error.

Object Safety§

This trait is not object safe.

Implementors§