Struct otopr::encoding::EncodeAsRef [−][src]
pub struct EncodeAsRef<T, U: ?Sized>(_, _);
Implementations
Trait Implementations
returns the size in bytes when encoded, including the field number.
The entry point to encoding Encodable
s in a message. Read more
unsafe fn encode_field_precomputed(
&self,
s: &mut ProtobufSerializer<impl BufMut>,
field_number: &[u8]
)
unsafe fn encode_field_precomputed(
&self,
s: &mut ProtobufSerializer<impl BufMut>,
field_number: &[u8]
)
Encodes a field using precomputed bytes for the field number and the wire type varint. Read more