#[repr(C, align(4))]pub struct Int32(pub i32);Expand description
A wire-encoded i32
Tuple Fields§
§0: i32Trait Implementations§
Source§impl AddAssign<&Int32> for Int32
impl AddAssign<&Int32> for Int32
Source§fn add_assign(&mut self, other: &Int32)
fn add_assign(&mut self, other: &Int32)
Performs the
+= operation. Read moreSource§impl AddAssign<&i32> for Int32
impl AddAssign<&i32> for Int32
Source§fn add_assign(&mut self, other: &i32)
fn add_assign(&mut self, other: &i32)
Performs the
+= operation. Read moreSource§impl AddAssign<i32> for Int32
impl AddAssign<i32> for Int32
Source§fn add_assign(&mut self, other: i32)
fn add_assign(&mut self, other: i32)
Performs the
+= operation. Read moreSource§impl AddAssign for Int32
impl AddAssign for Int32
Source§fn add_assign(&mut self, other: Int32)
fn add_assign(&mut self, other: Int32)
Performs the
+= operation. Read moreSource§impl BitAndAssign<&Int32> for Int32
impl BitAndAssign<&Int32> for Int32
Source§fn bitand_assign(&mut self, other: &Int32)
fn bitand_assign(&mut self, other: &Int32)
Performs the
&= operation. Read moreSource§impl BitAndAssign<&i32> for Int32
impl BitAndAssign<&i32> for Int32
Source§fn bitand_assign(&mut self, other: &i32)
fn bitand_assign(&mut self, other: &i32)
Performs the
&= operation. Read moreSource§impl BitAndAssign<i32> for Int32
impl BitAndAssign<i32> for Int32
Source§fn bitand_assign(&mut self, other: i32)
fn bitand_assign(&mut self, other: i32)
Performs the
&= operation. Read moreSource§impl BitAndAssign for Int32
impl BitAndAssign for Int32
Source§fn bitand_assign(&mut self, other: Int32)
fn bitand_assign(&mut self, other: Int32)
Performs the
&= operation. Read moreSource§impl BitOrAssign<&Int32> for Int32
impl BitOrAssign<&Int32> for Int32
Source§fn bitor_assign(&mut self, other: &Int32)
fn bitor_assign(&mut self, other: &Int32)
Performs the
|= operation. Read moreSource§impl BitOrAssign<&i32> for Int32
impl BitOrAssign<&i32> for Int32
Source§fn bitor_assign(&mut self, other: &i32)
fn bitor_assign(&mut self, other: &i32)
Performs the
|= operation. Read moreSource§impl BitOrAssign<i32> for Int32
impl BitOrAssign<i32> for Int32
Source§fn bitor_assign(&mut self, other: i32)
fn bitor_assign(&mut self, other: i32)
Performs the
|= operation. Read moreSource§impl BitOrAssign for Int32
impl BitOrAssign for Int32
Source§fn bitor_assign(&mut self, other: Int32)
fn bitor_assign(&mut self, other: Int32)
Performs the
|= operation. Read moreSource§impl BitXorAssign<&Int32> for Int32
impl BitXorAssign<&Int32> for Int32
Source§fn bitxor_assign(&mut self, other: &Int32)
fn bitxor_assign(&mut self, other: &Int32)
Performs the
^= operation. Read moreSource§impl BitXorAssign<&i32> for Int32
impl BitXorAssign<&i32> for Int32
Source§fn bitxor_assign(&mut self, other: &i32)
fn bitxor_assign(&mut self, other: &i32)
Performs the
^= operation. Read moreSource§impl BitXorAssign<i32> for Int32
impl BitXorAssign<i32> for Int32
Source§fn bitxor_assign(&mut self, other: i32)
fn bitxor_assign(&mut self, other: i32)
Performs the
^= operation. Read moreSource§impl BitXorAssign for Int32
impl BitXorAssign for Int32
Source§fn bitxor_assign(&mut self, other: Int32)
fn bitxor_assign(&mut self, other: Int32)
Performs the
^= operation. Read moreSource§impl Constrained for Int32
impl Constrained for Int32
Source§type Constraint = ()
type Constraint = ()
Type of constraint information for this type.
Source§fn validate(
_: Slot<'_, Self>,
_: Self::Constraint,
) -> Result<(), ValidationError>
fn validate( _: Slot<'_, Self>, _: Self::Constraint, ) -> Result<(), ValidationError>
Validate a slot of this type against a constraint. Can be called when
pointers/envelopes are just presence markers.
Source§impl DivAssign<&Int32> for Int32
impl DivAssign<&Int32> for Int32
Source§fn div_assign(&mut self, other: &Int32)
fn div_assign(&mut self, other: &Int32)
Performs the
/= operation. Read moreSource§impl DivAssign<&i32> for Int32
impl DivAssign<&i32> for Int32
Source§fn div_assign(&mut self, other: &i32)
fn div_assign(&mut self, other: &i32)
Performs the
/= operation. Read moreSource§impl DivAssign<i32> for Int32
impl DivAssign<i32> for Int32
Source§fn div_assign(&mut self, other: i32)
fn div_assign(&mut self, other: i32)
Performs the
/= operation. Read moreSource§impl DivAssign for Int32
impl DivAssign for Int32
Source§fn div_assign(&mut self, other: Int32)
fn div_assign(&mut self, other: Int32)
Performs the
/= operation. Read moreSource§impl<E: ?Sized> Encode<Int32, E> for &Int32
impl<E: ?Sized> Encode<Int32, E> for &Int32
Source§fn encode(
self,
_: &mut E,
out: &mut MaybeUninit<Int32>,
_: <Int32 as Constrained>::Constraint,
) -> Result<(), EncodeError>
fn encode( self, _: &mut E, out: &mut MaybeUninit<Int32>, _: <Int32 as Constrained>::Constraint, ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
Source§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<E: ?Sized> Encode<Int32, E> for &i32
impl<E: ?Sized> Encode<Int32, E> for &i32
Source§fn encode(
self,
_: &mut E,
out: &mut MaybeUninit<Int32>,
_: <Int32 as Constrained>::Constraint,
) -> Result<(), EncodeError>
fn encode( self, _: &mut E, out: &mut MaybeUninit<Int32>, _: <Int32 as Constrained>::Constraint, ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
Source§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<E: ?Sized> Encode<Int32, E> for Int32
impl<E: ?Sized> Encode<Int32, E> for Int32
Source§const COPY_OPTIMIZATION: CopyOptimization<Int32, Int32> = crate::CopyOptimization<Int32, Int32>::PRIMITIVE
const COPY_OPTIMIZATION: CopyOptimization<Int32, Int32> = crate::CopyOptimization<Int32, Int32>::PRIMITIVE
Source§fn encode(
self,
encoder: &mut E,
out: &mut MaybeUninit<Int32>,
constraint: <Int32 as Constrained>::Constraint,
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut E, out: &mut MaybeUninit<Int32>, constraint: <Int32 as Constrained>::Constraint, ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
Source§impl<E: ?Sized> Encode<Int32, E> for i32
impl<E: ?Sized> Encode<Int32, E> for i32
Source§const COPY_OPTIMIZATION: CopyOptimization<i32, Int32> = crate::CopyOptimization<i32, Int32>::PRIMITIVE
const COPY_OPTIMIZATION: CopyOptimization<i32, Int32> = crate::CopyOptimization<i32, Int32>::PRIMITIVE
Source§fn encode(
self,
encoder: &mut E,
out: &mut MaybeUninit<Int32>,
constraint: <Int32 as Constrained>::Constraint,
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut E, out: &mut MaybeUninit<Int32>, constraint: <Int32 as Constrained>::Constraint, ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
Source§impl<E> EncodeOption<Box<'static, Int32>, E> for &Int32
impl<E> EncodeOption<Box<'static, Int32>, E> for &Int32
Source§fn encode_option(
this: Option<Self>,
encoder: &mut E,
out: &mut MaybeUninit<Box<'static, Int32>>,
constraint: <Int32 as Constrained>::Constraint,
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut E, out: &mut MaybeUninit<Box<'static, Int32>>, constraint: <Int32 as Constrained>::Constraint, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl<E> EncodeOption<Box<'static, Int32>, E> for Int32
impl<E> EncodeOption<Box<'static, Int32>, E> for Int32
Source§fn encode_option(
this: Option<Self>,
encoder: &mut E,
out: &mut MaybeUninit<Box<'static, Int32>>,
constraint: <Int32 as Constrained>::Constraint,
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut E, out: &mut MaybeUninit<Box<'static, Int32>>, constraint: <Int32 as Constrained>::Constraint, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl FromBytes for Int32
impl FromBytes for Int32
Source§impl FromWireRef<Int32> for i32
impl FromWireRef<Int32> for i32
Source§fn from_wire_ref(wire: &Int32) -> Self
fn from_wire_ref(wire: &Int32) -> Self
Converts the given reference to this type.
Source§impl FromZeros for Int32
impl FromZeros for Int32
Source§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere
Self: Sized,
Creates an instance of
Self from zeroed bytes. Read moreSource§fn new_box_zeroed() -> Result<Box<Self>, AllocError>where
Self: Sized,
fn new_box_zeroed() -> Result<Box<Self>, AllocError>where
Self: Sized,
Creates a
Box<Self> from zeroed bytes. Read moreSource§fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>where
Self: Sized,
fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>where
Self: Sized,
Creates a
Vec<Self> from zeroed bytes. Read moreSource§fn extend_vec_zeroed(
v: &mut Vec<Self>,
additional: usize,
) -> Result<(), AllocError>where
Self: Sized,
fn extend_vec_zeroed(
v: &mut Vec<Self>,
additional: usize,
) -> Result<(), AllocError>where
Self: Sized,
Extends a
Vec<Self> by pushing additional new items onto the end of
the vector. The new items are initialized with zeros.Source§impl IntoNatural for Int32
impl IntoNatural for Int32
Source§impl MulAssign<&Int32> for Int32
impl MulAssign<&Int32> for Int32
Source§fn mul_assign(&mut self, other: &Int32)
fn mul_assign(&mut self, other: &Int32)
Performs the
*= operation. Read moreSource§impl MulAssign<&i32> for Int32
impl MulAssign<&i32> for Int32
Source§fn mul_assign(&mut self, other: &i32)
fn mul_assign(&mut self, other: &i32)
Performs the
*= operation. Read moreSource§impl MulAssign<i32> for Int32
impl MulAssign<i32> for Int32
Source§fn mul_assign(&mut self, other: i32)
fn mul_assign(&mut self, other: i32)
Performs the
*= operation. Read moreSource§impl MulAssign for Int32
impl MulAssign for Int32
Source§fn mul_assign(&mut self, other: Int32)
fn mul_assign(&mut self, other: Int32)
Performs the
*= operation. Read moreSource§impl Ord for Int32
impl Ord for Int32
Source§impl PartialOrd<i32> for Int32
impl PartialOrd<i32> for Int32
Source§impl PartialOrd for Int32
impl PartialOrd for Int32
Source§impl RemAssign<&Int32> for Int32
impl RemAssign<&Int32> for Int32
Source§fn rem_assign(&mut self, other: &Int32)
fn rem_assign(&mut self, other: &Int32)
Performs the
%= operation. Read moreSource§impl RemAssign<&i32> for Int32
impl RemAssign<&i32> for Int32
Source§fn rem_assign(&mut self, other: &i32)
fn rem_assign(&mut self, other: &i32)
Performs the
%= operation. Read moreSource§impl RemAssign<i32> for Int32
impl RemAssign<i32> for Int32
Source§fn rem_assign(&mut self, other: i32)
fn rem_assign(&mut self, other: i32)
Performs the
%= operation. Read moreSource§impl RemAssign for Int32
impl RemAssign for Int32
Source§fn rem_assign(&mut self, other: Int32)
fn rem_assign(&mut self, other: Int32)
Performs the
%= operation. Read moreSource§impl ShlAssign<&Int32> for Int32
impl ShlAssign<&Int32> for Int32
Source§fn shl_assign(&mut self, other: &Int32)
fn shl_assign(&mut self, other: &Int32)
Performs the
<<= operation. Read moreSource§impl ShlAssign<&i32> for Int32
impl ShlAssign<&i32> for Int32
Source§fn shl_assign(&mut self, other: &i32)
fn shl_assign(&mut self, other: &i32)
Performs the
<<= operation. Read moreSource§impl ShlAssign<i32> for Int32
impl ShlAssign<i32> for Int32
Source§fn shl_assign(&mut self, other: i32)
fn shl_assign(&mut self, other: i32)
Performs the
<<= operation. Read moreSource§impl ShlAssign for Int32
impl ShlAssign for Int32
Source§fn shl_assign(&mut self, other: Int32)
fn shl_assign(&mut self, other: Int32)
Performs the
<<= operation. Read moreSource§impl ShrAssign<&Int32> for Int32
impl ShrAssign<&Int32> for Int32
Source§fn shr_assign(&mut self, other: &Int32)
fn shr_assign(&mut self, other: &Int32)
Performs the
>>= operation. Read moreSource§impl ShrAssign<&i32> for Int32
impl ShrAssign<&i32> for Int32
Source§fn shr_assign(&mut self, other: &i32)
fn shr_assign(&mut self, other: &i32)
Performs the
>>= operation. Read moreSource§impl ShrAssign<i32> for Int32
impl ShrAssign<i32> for Int32
Source§fn shr_assign(&mut self, other: i32)
fn shr_assign(&mut self, other: i32)
Performs the
>>= operation. Read moreSource§impl ShrAssign for Int32
impl ShrAssign for Int32
Source§fn shr_assign(&mut self, other: Int32)
fn shr_assign(&mut self, other: Int32)
Performs the
>>= operation. Read moreSource§impl SubAssign<&Int32> for Int32
impl SubAssign<&Int32> for Int32
Source§fn sub_assign(&mut self, other: &Int32)
fn sub_assign(&mut self, other: &Int32)
Performs the
-= operation. Read moreSource§impl SubAssign<&i32> for Int32
impl SubAssign<&i32> for Int32
Source§fn sub_assign(&mut self, other: &i32)
fn sub_assign(&mut self, other: &i32)
Performs the
-= operation. Read moreSource§impl SubAssign<i32> for Int32
impl SubAssign<i32> for Int32
Source§fn sub_assign(&mut self, other: i32)
fn sub_assign(&mut self, other: i32)
Performs the
-= operation. Read moreSource§impl SubAssign for Int32
impl SubAssign for Int32
Source§fn sub_assign(&mut self, other: Int32)
fn sub_assign(&mut self, other: Int32)
Performs the
-= operation. Read moreSource§impl TryFromBytes for Int32where
i32: TryFromBytes,
impl TryFromBytes for Int32where
i32: TryFromBytes,
Source§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§impl Wire for Int32
impl Wire for Int32
Source§fn zero_padding(_: &mut MaybeUninit<Self>)
fn zero_padding(_: &mut MaybeUninit<Self>)
Writes zeroes to the padding for this type, if any.
impl Copy for Int32
impl Eq for Int32
Auto Trait Implementations§
impl Freeze for Int32
impl RefUnwindSafe for Int32
impl Send for Int32
impl Sync for Int32
impl Unpin for Int32
impl UnwindSafe for Int32
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