#[repr(C, align(4))]pub struct Uint32(pub u32);Expand description
A wire-encoded u32
Tuple Fields§
§0: u32Trait Implementations§
Source§impl AddAssign<&Uint32> for Uint32
impl AddAssign<&Uint32> for Uint32
Source§fn add_assign(&mut self, other: &Uint32)
fn add_assign(&mut self, other: &Uint32)
Performs the
+= operation. Read moreSource§impl AddAssign<&u32> for Uint32
impl AddAssign<&u32> for Uint32
Source§fn add_assign(&mut self, other: &u32)
fn add_assign(&mut self, other: &u32)
Performs the
+= operation. Read moreSource§impl AddAssign<u32> for Uint32
impl AddAssign<u32> for Uint32
Source§fn add_assign(&mut self, other: u32)
fn add_assign(&mut self, other: u32)
Performs the
+= operation. Read moreSource§impl AddAssign for Uint32
impl AddAssign for Uint32
Source§fn add_assign(&mut self, other: Uint32)
fn add_assign(&mut self, other: Uint32)
Performs the
+= operation. Read moreSource§impl BitAndAssign<&Uint32> for Uint32
impl BitAndAssign<&Uint32> for Uint32
Source§fn bitand_assign(&mut self, other: &Uint32)
fn bitand_assign(&mut self, other: &Uint32)
Performs the
&= operation. Read moreSource§impl BitAndAssign<&u32> for Uint32
impl BitAndAssign<&u32> for Uint32
Source§fn bitand_assign(&mut self, other: &u32)
fn bitand_assign(&mut self, other: &u32)
Performs the
&= operation. Read moreSource§impl BitAndAssign<u32> for Uint32
impl BitAndAssign<u32> for Uint32
Source§fn bitand_assign(&mut self, other: u32)
fn bitand_assign(&mut self, other: u32)
Performs the
&= operation. Read moreSource§impl BitAndAssign for Uint32
impl BitAndAssign for Uint32
Source§fn bitand_assign(&mut self, other: Uint32)
fn bitand_assign(&mut self, other: Uint32)
Performs the
&= operation. Read moreSource§impl BitOrAssign<&Uint32> for Uint32
impl BitOrAssign<&Uint32> for Uint32
Source§fn bitor_assign(&mut self, other: &Uint32)
fn bitor_assign(&mut self, other: &Uint32)
Performs the
|= operation. Read moreSource§impl BitOrAssign<&u32> for Uint32
impl BitOrAssign<&u32> for Uint32
Source§fn bitor_assign(&mut self, other: &u32)
fn bitor_assign(&mut self, other: &u32)
Performs the
|= operation. Read moreSource§impl BitOrAssign<u32> for Uint32
impl BitOrAssign<u32> for Uint32
Source§fn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the
|= operation. Read moreSource§impl BitOrAssign for Uint32
impl BitOrAssign for Uint32
Source§fn bitor_assign(&mut self, other: Uint32)
fn bitor_assign(&mut self, other: Uint32)
Performs the
|= operation. Read moreSource§impl BitXorAssign<&Uint32> for Uint32
impl BitXorAssign<&Uint32> for Uint32
Source§fn bitxor_assign(&mut self, other: &Uint32)
fn bitxor_assign(&mut self, other: &Uint32)
Performs the
^= operation. Read moreSource§impl BitXorAssign<&u32> for Uint32
impl BitXorAssign<&u32> for Uint32
Source§fn bitxor_assign(&mut self, other: &u32)
fn bitxor_assign(&mut self, other: &u32)
Performs the
^= operation. Read moreSource§impl BitXorAssign<u32> for Uint32
impl BitXorAssign<u32> for Uint32
Source§fn bitxor_assign(&mut self, other: u32)
fn bitxor_assign(&mut self, other: u32)
Performs the
^= operation. Read moreSource§impl BitXorAssign for Uint32
impl BitXorAssign for Uint32
Source§fn bitxor_assign(&mut self, other: Uint32)
fn bitxor_assign(&mut self, other: Uint32)
Performs the
^= operation. Read moreSource§impl Constrained for Uint32
impl Constrained for Uint32
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<&Uint32> for Uint32
impl DivAssign<&Uint32> for Uint32
Source§fn div_assign(&mut self, other: &Uint32)
fn div_assign(&mut self, other: &Uint32)
Performs the
/= operation. Read moreSource§impl DivAssign<&u32> for Uint32
impl DivAssign<&u32> for Uint32
Source§fn div_assign(&mut self, other: &u32)
fn div_assign(&mut self, other: &u32)
Performs the
/= operation. Read moreSource§impl DivAssign<u32> for Uint32
impl DivAssign<u32> for Uint32
Source§fn div_assign(&mut self, other: u32)
fn div_assign(&mut self, other: u32)
Performs the
/= operation. Read moreSource§impl DivAssign for Uint32
impl DivAssign for Uint32
Source§fn div_assign(&mut self, other: Uint32)
fn div_assign(&mut self, other: Uint32)
Performs the
/= operation. Read moreSource§impl<E: ?Sized> Encode<Uint32, E> for &Uint32
impl<E: ?Sized> Encode<Uint32, E> for &Uint32
Source§fn encode(
self,
_: &mut E,
out: &mut MaybeUninit<Uint32>,
_: <Uint32 as Constrained>::Constraint,
) -> Result<(), EncodeError>
fn encode( self, _: &mut E, out: &mut MaybeUninit<Uint32>, _: <Uint32 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<Uint32, E> for &u32
impl<E: ?Sized> Encode<Uint32, E> for &u32
Source§fn encode(
self,
_: &mut E,
out: &mut MaybeUninit<Uint32>,
_: <Uint32 as Constrained>::Constraint,
) -> Result<(), EncodeError>
fn encode( self, _: &mut E, out: &mut MaybeUninit<Uint32>, _: <Uint32 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<Uint32, E> for Uint32
impl<E: ?Sized> Encode<Uint32, E> for Uint32
Source§const COPY_OPTIMIZATION: CopyOptimization<Uint32, Uint32> = crate::CopyOptimization<Uint32, Uint32>::PRIMITIVE
const COPY_OPTIMIZATION: CopyOptimization<Uint32, Uint32> = crate::CopyOptimization<Uint32, Uint32>::PRIMITIVE
Source§fn encode(
self,
encoder: &mut E,
out: &mut MaybeUninit<Uint32>,
constraint: <Uint32 as Constrained>::Constraint,
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut E, out: &mut MaybeUninit<Uint32>, constraint: <Uint32 as Constrained>::Constraint, ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
Source§impl<E: ?Sized> Encode<Uint32, E> for u32
impl<E: ?Sized> Encode<Uint32, E> for u32
Source§const COPY_OPTIMIZATION: CopyOptimization<u32, Uint32> = crate::CopyOptimization<u32, Uint32>::PRIMITIVE
const COPY_OPTIMIZATION: CopyOptimization<u32, Uint32> = crate::CopyOptimization<u32, Uint32>::PRIMITIVE
Source§fn encode(
self,
encoder: &mut E,
out: &mut MaybeUninit<Uint32>,
constraint: <Uint32 as Constrained>::Constraint,
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut E, out: &mut MaybeUninit<Uint32>, constraint: <Uint32 as Constrained>::Constraint, ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
Source§impl<E> EncodeOption<Box<'static, Uint32>, E> for &Uint32
impl<E> EncodeOption<Box<'static, Uint32>, E> for &Uint32
Source§fn encode_option(
this: Option<Self>,
encoder: &mut E,
out: &mut MaybeUninit<Box<'static, Uint32>>,
constraint: <Uint32 as Constrained>::Constraint,
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut E, out: &mut MaybeUninit<Box<'static, Uint32>>, constraint: <Uint32 as Constrained>::Constraint, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl<E> EncodeOption<Box<'static, Uint32>, E> for Uint32
impl<E> EncodeOption<Box<'static, Uint32>, E> for Uint32
Source§fn encode_option(
this: Option<Self>,
encoder: &mut E,
out: &mut MaybeUninit<Box<'static, Uint32>>,
constraint: <Uint32 as Constrained>::Constraint,
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut E, out: &mut MaybeUninit<Box<'static, Uint32>>, constraint: <Uint32 as Constrained>::Constraint, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl FromBytes for Uint32
impl FromBytes for Uint32
Source§impl FromWireRef<Uint32> for u32
impl FromWireRef<Uint32> for u32
Source§fn from_wire_ref(wire: &Uint32) -> Self
fn from_wire_ref(wire: &Uint32) -> Self
Converts the given reference to this type.
Source§impl FromZeros for Uint32
impl FromZeros for Uint32
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 Uint32
impl IntoNatural for Uint32
Source§impl MulAssign<&Uint32> for Uint32
impl MulAssign<&Uint32> for Uint32
Source§fn mul_assign(&mut self, other: &Uint32)
fn mul_assign(&mut self, other: &Uint32)
Performs the
*= operation. Read moreSource§impl MulAssign<&u32> for Uint32
impl MulAssign<&u32> for Uint32
Source§fn mul_assign(&mut self, other: &u32)
fn mul_assign(&mut self, other: &u32)
Performs the
*= operation. Read moreSource§impl MulAssign<u32> for Uint32
impl MulAssign<u32> for Uint32
Source§fn mul_assign(&mut self, other: u32)
fn mul_assign(&mut self, other: u32)
Performs the
*= operation. Read moreSource§impl MulAssign for Uint32
impl MulAssign for Uint32
Source§fn mul_assign(&mut self, other: Uint32)
fn mul_assign(&mut self, other: Uint32)
Performs the
*= operation. Read moreSource§impl Ord for Uint32
impl Ord for Uint32
Source§impl PartialOrd<u32> for Uint32
impl PartialOrd<u32> for Uint32
Source§impl PartialOrd for Uint32
impl PartialOrd for Uint32
Source§impl RemAssign<&Uint32> for Uint32
impl RemAssign<&Uint32> for Uint32
Source§fn rem_assign(&mut self, other: &Uint32)
fn rem_assign(&mut self, other: &Uint32)
Performs the
%= operation. Read moreSource§impl RemAssign<&u32> for Uint32
impl RemAssign<&u32> for Uint32
Source§fn rem_assign(&mut self, other: &u32)
fn rem_assign(&mut self, other: &u32)
Performs the
%= operation. Read moreSource§impl RemAssign<u32> for Uint32
impl RemAssign<u32> for Uint32
Source§fn rem_assign(&mut self, other: u32)
fn rem_assign(&mut self, other: u32)
Performs the
%= operation. Read moreSource§impl RemAssign for Uint32
impl RemAssign for Uint32
Source§fn rem_assign(&mut self, other: Uint32)
fn rem_assign(&mut self, other: Uint32)
Performs the
%= operation. Read moreSource§impl ShlAssign<&Uint32> for Uint32
impl ShlAssign<&Uint32> for Uint32
Source§fn shl_assign(&mut self, other: &Uint32)
fn shl_assign(&mut self, other: &Uint32)
Performs the
<<= operation. Read moreSource§impl ShlAssign<&u32> for Uint32
impl ShlAssign<&u32> for Uint32
Source§fn shl_assign(&mut self, other: &u32)
fn shl_assign(&mut self, other: &u32)
Performs the
<<= operation. Read moreSource§impl ShlAssign<u32> for Uint32
impl ShlAssign<u32> for Uint32
Source§fn shl_assign(&mut self, other: u32)
fn shl_assign(&mut self, other: u32)
Performs the
<<= operation. Read moreSource§impl ShlAssign for Uint32
impl ShlAssign for Uint32
Source§fn shl_assign(&mut self, other: Uint32)
fn shl_assign(&mut self, other: Uint32)
Performs the
<<= operation. Read moreSource§impl ShrAssign<&Uint32> for Uint32
impl ShrAssign<&Uint32> for Uint32
Source§fn shr_assign(&mut self, other: &Uint32)
fn shr_assign(&mut self, other: &Uint32)
Performs the
>>= operation. Read moreSource§impl ShrAssign<&u32> for Uint32
impl ShrAssign<&u32> for Uint32
Source§fn shr_assign(&mut self, other: &u32)
fn shr_assign(&mut self, other: &u32)
Performs the
>>= operation. Read moreSource§impl ShrAssign<u32> for Uint32
impl ShrAssign<u32> for Uint32
Source§fn shr_assign(&mut self, other: u32)
fn shr_assign(&mut self, other: u32)
Performs the
>>= operation. Read moreSource§impl ShrAssign for Uint32
impl ShrAssign for Uint32
Source§fn shr_assign(&mut self, other: Uint32)
fn shr_assign(&mut self, other: Uint32)
Performs the
>>= operation. Read moreSource§impl SubAssign<&Uint32> for Uint32
impl SubAssign<&Uint32> for Uint32
Source§fn sub_assign(&mut self, other: &Uint32)
fn sub_assign(&mut self, other: &Uint32)
Performs the
-= operation. Read moreSource§impl SubAssign<&u32> for Uint32
impl SubAssign<&u32> for Uint32
Source§fn sub_assign(&mut self, other: &u32)
fn sub_assign(&mut self, other: &u32)
Performs the
-= operation. Read moreSource§impl SubAssign<u32> for Uint32
impl SubAssign<u32> for Uint32
Source§fn sub_assign(&mut self, other: u32)
fn sub_assign(&mut self, other: u32)
Performs the
-= operation. Read moreSource§impl SubAssign for Uint32
impl SubAssign for Uint32
Source§fn sub_assign(&mut self, other: Uint32)
fn sub_assign(&mut self, other: Uint32)
Performs the
-= operation. Read moreSource§impl TryFromBytes for Uint32where
u32: TryFromBytes,
impl TryFromBytes for Uint32where
u32: 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 Uint32
impl Wire for Uint32
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 Uint32
impl Eq for Uint32
Auto Trait Implementations§
impl Freeze for Uint32
impl RefUnwindSafe for Uint32
impl Send for Uint32
impl Sync for Uint32
impl Unpin for Uint32
impl UnwindSafe for Uint32
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