Enum fire_protobuf::decode::FieldKind
source · Variants§
Implementations§
source§impl<'a> FieldKind<'a>
impl<'a> FieldKind<'a>
pub fn is_len(&self) -> bool
pub fn wire_type(&self) -> WireType
pub fn try_unwrap_varint(&self) -> Result<u64, DecodeError>
pub fn try_unwrap_i32(&self) -> Result<u32, DecodeError>
pub fn try_unwrap_i64(&self) -> Result<u64, DecodeError>
sourcepub fn try_unwrap_len(&self) -> Result<&'a [u8], DecodeError>
pub fn try_unwrap_len(&self) -> Result<&'a [u8], DecodeError>
Returns ExpectedLenWireType if the kind is not Len