pub fn encoded_version(buf: &[u8]) -> Result<u8, Error> {
        buf.get(0)
            .copied()
            .ok_or_else(|| Error::from("missing encoding version"))
    }
/// The [Self::ENCODING_VERSION] of this previously encoded ProtoMeta.
///
/// Returns an error if the input is malformed.
The [Self::ENCODING_VERSION] of this previously encoded ProtoMeta.
Returns an error if the input is malformed.
The [ Self :: ENCODING_VERSION ] of this previously encoded ProtoMeta . Returns an error if the input is malformed .
pub fn encoded_version(buf: &[u8]) -> Result<u8, Error> {
        buf.get(0)
            .copied()
            .ok_or_else(|| Error::from("missing encoding version"))
    }
pub fn encoded_version ( buf : & [ u8 ] ) -> Result < u8 , Error > { buf . get ( 0 ) . copied ( ) . ok_or_else ( | | Error :: from ( " " ) ) }
The [Self::ENCODING_VERSION] of this previously encoded ProtoMeta.
The [ Self :: ENCODING_VERSION ] of this previously encoded ProtoMeta .
buf
&[u8]
buf
&[u8]