Struct protobuf::types::ProtobufTypeEnum
[−]
[src]
pub struct ProtobufTypeEnum<E: ProtobufEnum>(_);
Trait Implementations
impl<E: ProtobufEnum + ProtobufValue> ProtobufType for ProtobufTypeEnum<E>
[src]
type Value = E
fn wire_type() -> WireType
fn read(is: &mut CodedInputStream) -> ProtobufResult<E>
fn compute_size(value: &E) -> u32
fn write_with_cached_size<W>(field_number: u32,
value: &E,
os: &mut W)
-> ProtobufResult<()> where W: Write
value: &E,
os: &mut W)
-> ProtobufResult<()> where W: Write
fn compute_size_with_length_delimiter(value: &Self::Value) -> u32
Compute size adding length prefix if wire type is length delimited (i. e. string, bytes, message) Read more
fn get_cached_size(value: &Self::Value) -> u32
Get previously computed size
fn get_cached_size_with_length_delimiter(value: &Self::Value) -> u32
Get previously cached size with length prefix