[−][src]Trait pb_jelly::PbBuffer
A stand-in trait for any backing buffer store. Required to be object-safe for lazy evaluation. PbBuffers are expected to own references to the data they reference, and should be cheap (constant-time) to clone.
Associated Types
type Reader: PbBufferReader
Required methods
fn len(&self) -> usize
fn into_reader(self) -> Self::Reader
Provided methods
fn from_reader<R: PbBufferReader>(reader: &mut R) -> Result<Self>
Deserialize this buffer from a reader. Unless overridden, this will error if the reader does not support casting to [Self].