pub struct Signed32(pub i32);
Tuple Fields§
§0: i32
Methods from Deref<Target = i32>§
pub const MIN: i32 = -2_147_483_648i32
pub const MAX: i32 = 2_147_483_647i32
pub const BITS: u32 = 32u32
Trait Implementations§
source§impl<'de> Deserialize<'de> for Signed32
impl<'de> Deserialize<'de> for Signed32
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Message for Signed32
impl Message for Signed32
source§fn compute_size(&self) -> usize
fn compute_size(&self) -> usize
Computes the number of bytes a message will take when serialized. This does not
include number of bytes required for tag+wire_format or the bytes used to represent
length of the message in case of LengthDelimited messages/types.
source§fn serialize<W: PbBufferWriter>(&self, w: &mut W) -> Result<()>
fn serialize<W: PbBufferWriter>(&self, w: &mut W) -> Result<()>
Serializes the message to the writer.
source§fn deserialize<B: PbBufferReader>(&mut self, buf: &mut B) -> Result<()>
fn deserialize<B: PbBufferReader>(&mut self, buf: &mut B) -> Result<()>
Reads the message from the blob reader, copying as necessary.
source§fn descriptor(&self) -> Option<MessageDescriptor>
fn descriptor(&self) -> Option<MessageDescriptor>
Returns the
MessageDescriptor
for this message, if this is not a primitive type.source§fn compute_grpc_slices_size(&self) -> usize
fn compute_grpc_slices_size(&self) -> usize
Computes the number of bytes in all grpc slices.
This information is used to optimize memory allocations in zero-copy encoding.
source§impl Ord for Signed32
impl Ord for Signed32
source§impl PartialEq for Signed32
impl PartialEq for Signed32
source§impl PartialOrd for Signed32
impl PartialOrd for Signed32
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Reflection for Signed32
impl Reflection for Signed32
impl Copy for Signed32
impl Eq for Signed32
impl StructuralEq for Signed32
impl StructuralPartialEq for Signed32
Auto Trait Implementations§
impl RefUnwindSafe for Signed32
impl Send for Signed32
impl Sync for Signed32
impl Unpin for Signed32
impl UnwindSafe for Signed32
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