pub struct Sfixed64;Expand description
Codec for the Sfixed64 proto scalar type.
Trait Implementations§
Source§impl ExtensionCodec for Sfixed64
impl ExtensionCodec for Sfixed64
Source§type Value = i64
type Value = i64
The value type passed to
ExtensionSet::set_extension.Source§fn decode(number: u32, fields: &UnknownFields) -> Option<i64>
fn decode(number: u32, fields: &UnknownFields) -> Option<i64>
Decode this extension’s value from the extendee’s unknown fields.
Source§fn try_encode(
number: u32,
value: i64,
fields: &mut UnknownFields,
) -> Result<(), EncodeError>
fn try_encode( number: u32, value: i64, 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 Sfixed64
impl PackableCodec for Sfixed64
Source§impl SingularCodec for Sfixed64
impl SingularCodec for Sfixed64
type Value = i64
Source§fn decode_one(data: &UnknownFieldData) -> Option<i64>
fn decode_one(data: &UnknownFieldData) -> Option<i64>
Decode one value from one unknown-field record’s data. Read more
Source§fn decode_packed(bytes: &[u8], out: &mut Vec<i64>)
fn decode_packed(bytes: &[u8], out: &mut Vec<i64>)
Decode all values from a packed
LengthDelimited payload. Read moreSource§fn try_encode_one(v: &i64) -> Result<UnknownFieldData, EncodeError>
fn try_encode_one(v: &i64) -> 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 Sfixed64
impl Freeze for Sfixed64
impl Move for Sfixed64
impl RefUnwindSafe for Sfixed64
impl Send for Sfixed64
impl Sync for Sfixed64
impl Unpin for Sfixed64
impl UnsafeUnpin for Sfixed64
impl UnwindSafe for Sfixed64
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