pub trait BinProto<'buf> {
// Required methods
fn qualified_name(&self) -> &'static str;
fn merge_field(
&mut self,
tag_wire: u32,
stream: &mut InputStream<'buf>,
) -> Result<()>;
fn size(&self, stack: &mut SizeStack) -> usize;
fn encode(&self, stream: &mut OutputStream);
}Required Methods§
fn qualified_name(&self) -> &'static str
fn merge_field( &mut self, tag_wire: u32, stream: &mut InputStream<'buf>, ) -> Result<()>
fn size(&self, stack: &mut SizeStack) -> usize
fn encode(&self, stream: &mut OutputStream)
Implementations on Foreign Types§
Source§impl<'buf, 'arena, T> BinProto<'buf> for Box<'arena, T>where
T: BinProto<'buf>,
Available on crate feature arena only.
impl<'buf, 'arena, T> BinProto<'buf> for Box<'arena, T>where
T: BinProto<'buf>,
Available on crate feature
arena only.