Struct protobuf_codec::scalar::Uint32Encoder [−][src]
pub struct Uint32Encoder(_);
Encoder for uint32 values.
Methods
impl Uint32Encoder[src]
impl Uint32EncoderTrait Implementations
impl Debug for Uint32Encoder[src]
impl Debug for Uint32Encoderfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for Uint32Encoder[src]
impl Default for Uint32Encoderfn default() -> Uint32Encoder[src]
fn default() -> Uint32EncoderReturns the "default value" for a type. Read more
impl Encode for Uint32Encoder[src]
impl Encode for Uint32Encodertype Item = u32
The type of items to be encoded.
fn encode(&mut self, buf: &mut [u8], eos: Eos) -> Result<usize>[src]
fn encode(&mut self, buf: &mut [u8], eos: Eos) -> Result<usize>Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more
fn start_encoding(&mut self, item: Self::Item) -> Result<()>[src]
fn start_encoding(&mut self, item: Self::Item) -> Result<()>Tries to start encoding the given item. Read more
fn is_idle(&self) -> bool[src]
fn is_idle(&self) -> boolReturns true if there are no items to be encoded in the encoder, otherwise false. Read more
fn requiring_bytes(&self) -> ByteCount[src]
fn requiring_bytes(&self) -> ByteCountReturns the number of bytes required to encode all the items in the encoder. Read more
impl SizedEncode for Uint32Encoder[src]
impl SizedEncode for Uint32Encoderfn exact_requiring_bytes(&self) -> u64[src]
fn exact_requiring_bytes(&self) -> u64Returns the exact number of bytes required to encode all the items remaining in the encoder.
impl ValueEncode for Uint32Encoder[src]
impl ValueEncode for Uint32Encoderimpl MapKeyEncode for Uint32Encoder[src]
impl MapKeyEncode for Uint32Encoderimpl NumericValueEncode for Uint32Encoder[src]
impl NumericValueEncode for Uint32EncoderAuto Trait Implementations
impl Send for Uint32Encoder
impl Send for Uint32Encoderimpl Sync for Uint32Encoder
impl Sync for Uint32Encoder