pub struct Sfixed32;Expand description
Codec for the Sfixed32 proto scalar type.
Trait Implementations§
Source§impl ExtensionCodec for Sfixed32
impl ExtensionCodec for Sfixed32
Source§type Value = i32
type Value = i32
The value type passed to
ExtensionSet::set_extension.Source§fn decode(number: u32, fields: &UnknownFields) -> Option<i32>
fn decode(number: u32, fields: &UnknownFields) -> Option<i32>
Decode this extension’s value from the extendee’s unknown fields.
Source§fn try_encode(
number: u32,
value: i32,
fields: &mut UnknownFields,
) -> Result<(), EncodeError>
fn try_encode( number: u32, value: i32, fields: &mut UnknownFields, ) -> Result<(), EncodeError>
Encode
value into the extendee’s unknown fields. Read moreSource§fn encode(number: u32, value: Self::Value, fields: &mut UnknownFields)
fn encode(number: u32, value: Self::Value, fields: &mut UnknownFields)
Panicking wrapper over
try_encode. Read moreSource§impl PackableCodec for Sfixed32
impl PackableCodec for Sfixed32
Source§impl SingularCodec for Sfixed32
impl SingularCodec for Sfixed32
type Value = i32
Source§fn decode_one(data: &UnknownFieldData) -> Option<i32>
fn decode_one(data: &UnknownFieldData) -> Option<i32>
Decode one value from one unknown-field record’s data. Read more
Source§fn decode_packed(bytes: &[u8], out: &mut Vec<i32>)
fn decode_packed(bytes: &[u8], out: &mut Vec<i32>)
Decode all values from a packed
LengthDelimited payload. Read moreSource§fn try_encode_one(v: &i32) -> Result<UnknownFieldData, EncodeError>
fn try_encode_one(v: &i32) -> Result<UnknownFieldData, EncodeError>
Encode one value as a single unknown-field record. Read more
Source§fn decode_one_ctx(
data: &UnknownFieldData,
_ctx: DecodeContext<'_>,
) -> Option<Self::Value>
fn decode_one_ctx( data: &UnknownFieldData, _ctx: DecodeContext<'_>, ) -> Option<Self::Value>
Decode one value under a decode context shared with the other
records of the same field. Read more
Source§fn encode_one(value: &Self::Value) -> UnknownFieldData
fn encode_one(value: &Self::Value) -> UnknownFieldData
Panicking wrapper over
try_encode_one. Read moreAuto Trait Implementations§
impl Forget for Sfixed32
impl Freeze for Sfixed32
impl Move for Sfixed32
impl RefUnwindSafe for Sfixed32
impl Send for Sfixed32
impl Sync for Sfixed32
impl Unpin for Sfixed32
impl UnsafeUnpin for Sfixed32
impl UnwindSafe for Sfixed32
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more