fn write_buffer<B: PbBuffer>(&mut self, buf: &B) -> Result<()> {
        if let Some(buf) = (buf as &dyn Any).downcast_ref::<VecReader>() {
            self.contents.push(buf.clone());
            Ok(())
        } else {
            Err(Error::new(ErrorKind::Other, "Can't zero-copy non-VecReader"))
        }
    }
/// Attempt to write non-deserialized buf into [Self]
Attempt to write non-deserialized buf into [Self]
Attempt to write non - deserialized buf into [ Self ]
fn write_buffer<B: PbBuffer>(&mut self, buf: &B) -> Result<()> {
        if let Some(buf) = (buf as &dyn Any).downcast_ref::<VecReader>() {
            self.contents.push(buf.clone());
            Ok(())
        } else {
            Err(Error::new(ErrorKind::Other, "Can't zero-copy non-VecReader"))
        }
    }
fn write_buffer < B : PbBuffer > ( & mut self , buf : & B ) -> Result < ( ) > { if let Some ( buf ) = ( buf as & dyn Any ) . downcast_ref :: < VecReader > ( ) { self . contents . push ( buf . clone ( ) ) ; Ok ( ( ) ) } else { Err ( Error :: new ( ErrorKind :: Other , " " ) ) } }
Attempt to write non-deserialized buf into [Self]
Attempt to write non - deserialized buf into [ Self ]
&mut self
buf
&B