Struct WireI64
#[repr(C, align(8))]pub struct WireI64(pub i64);
Expand description
A wire-encoded i64
Tuple Fields§
§0: i64
Trait Implementations§
§impl AddAssign<&WireI64> for WireI64
impl AddAssign<&WireI64> for WireI64
§fn add_assign(&mut self, other: &WireI64)
fn add_assign(&mut self, other: &WireI64)
Performs the
+=
operation. Read more§impl AddAssign<&i64> for WireI64
impl AddAssign<&i64> for WireI64
§fn add_assign(&mut self, other: &i64)
fn add_assign(&mut self, other: &i64)
Performs the
+=
operation. Read more§impl AddAssign<i64> for WireI64
impl AddAssign<i64> for WireI64
§fn add_assign(&mut self, other: i64)
fn add_assign(&mut self, other: i64)
Performs the
+=
operation. Read more§impl AddAssign for WireI64
impl AddAssign for WireI64
§fn add_assign(&mut self, other: WireI64)
fn add_assign(&mut self, other: WireI64)
Performs the
+=
operation. Read more§impl BitAndAssign<&WireI64> for WireI64
impl BitAndAssign<&WireI64> for WireI64
§fn bitand_assign(&mut self, other: &WireI64)
fn bitand_assign(&mut self, other: &WireI64)
Performs the
&=
operation. Read more§impl BitAndAssign<&i64> for WireI64
impl BitAndAssign<&i64> for WireI64
§fn bitand_assign(&mut self, other: &i64)
fn bitand_assign(&mut self, other: &i64)
Performs the
&=
operation. Read more§impl BitAndAssign<i64> for WireI64
impl BitAndAssign<i64> for WireI64
§fn bitand_assign(&mut self, other: i64)
fn bitand_assign(&mut self, other: i64)
Performs the
&=
operation. Read more§impl BitAndAssign for WireI64
impl BitAndAssign for WireI64
§fn bitand_assign(&mut self, other: WireI64)
fn bitand_assign(&mut self, other: WireI64)
Performs the
&=
operation. Read more§impl BitOrAssign<&WireI64> for WireI64
impl BitOrAssign<&WireI64> for WireI64
§fn bitor_assign(&mut self, other: &WireI64)
fn bitor_assign(&mut self, other: &WireI64)
Performs the
|=
operation. Read more§impl BitOrAssign<&i64> for WireI64
impl BitOrAssign<&i64> for WireI64
§fn bitor_assign(&mut self, other: &i64)
fn bitor_assign(&mut self, other: &i64)
Performs the
|=
operation. Read more§impl BitOrAssign<i64> for WireI64
impl BitOrAssign<i64> for WireI64
§fn bitor_assign(&mut self, other: i64)
fn bitor_assign(&mut self, other: i64)
Performs the
|=
operation. Read more§impl BitOrAssign for WireI64
impl BitOrAssign for WireI64
§fn bitor_assign(&mut self, other: WireI64)
fn bitor_assign(&mut self, other: WireI64)
Performs the
|=
operation. Read more§impl BitXorAssign<&WireI64> for WireI64
impl BitXorAssign<&WireI64> for WireI64
§fn bitxor_assign(&mut self, other: &WireI64)
fn bitxor_assign(&mut self, other: &WireI64)
Performs the
^=
operation. Read more§impl BitXorAssign<&i64> for WireI64
impl BitXorAssign<&i64> for WireI64
§fn bitxor_assign(&mut self, other: &i64)
fn bitxor_assign(&mut self, other: &i64)
Performs the
^=
operation. Read more§impl BitXorAssign<i64> for WireI64
impl BitXorAssign<i64> for WireI64
§fn bitxor_assign(&mut self, other: i64)
fn bitxor_assign(&mut self, other: i64)
Performs the
^=
operation. Read more§impl BitXorAssign for WireI64
impl BitXorAssign for WireI64
§fn bitxor_assign(&mut self, other: WireI64)
fn bitxor_assign(&mut self, other: WireI64)
Performs the
^=
operation. Read more§impl DivAssign<&WireI64> for WireI64
impl DivAssign<&WireI64> for WireI64
§fn div_assign(&mut self, other: &WireI64)
fn div_assign(&mut self, other: &WireI64)
Performs the
/=
operation. Read more§impl DivAssign<&i64> for WireI64
impl DivAssign<&i64> for WireI64
§fn div_assign(&mut self, other: &i64)
fn div_assign(&mut self, other: &i64)
Performs the
/=
operation. Read more§impl DivAssign<i64> for WireI64
impl DivAssign<i64> for WireI64
§fn div_assign(&mut self, other: i64)
fn div_assign(&mut self, other: i64)
Performs the
/=
operation. Read more§impl DivAssign for WireI64
impl DivAssign for WireI64
§fn div_assign(&mut self, other: WireI64)
fn div_assign(&mut self, other: WireI64)
Performs the
/=
operation. Read more§impl Encodable for WireI64
impl Encodable for WireI64
§const COPY_OPTIMIZATION: CopyOptimization<WireI64, WireI64> = CopyOptimization<WireI64, WireI64>::PRIMITIVE
const COPY_OPTIMIZATION: CopyOptimization<WireI64, WireI64> = CopyOptimization<WireI64, WireI64>::PRIMITIVE
Whether the conversion from
Self
to Self::Encoded
is equivalent to copying the raw bytes
of Self
. Read more§impl EncodableOption for WireI64
impl EncodableOption for WireI64
§type EncodedOption = WireBox<'static, WireI64>
type EncodedOption = WireBox<'static, WireI64>
The wire type for the optional value.
§impl<E> Encode<E> for WireI64where
E: ?Sized,
impl<E> Encode<E> for WireI64where
E: ?Sized,
§fn encode(
self,
encoder: &mut E,
out: &mut MaybeUninit<<WireI64 as Encodable>::Encoded>,
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut E, out: &mut MaybeUninit<<WireI64 as Encodable>::Encoded>, ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§impl<E> EncodeOption<E> for WireI64
impl<E> EncodeOption<E> for WireI64
§fn encode_option(
this: Option<WireI64>,
encoder: &mut E,
out: &mut MaybeUninit<<WireI64 as EncodableOption>::EncodedOption>,
) -> Result<(), EncodeError>
fn encode_option( this: Option<WireI64>, encoder: &mut E, out: &mut MaybeUninit<<WireI64 as EncodableOption>::EncodedOption>, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
§impl<E> EncodeOptionRef<E> for WireI64
impl<E> EncodeOptionRef<E> for WireI64
§fn encode_option_ref(
this: Option<&WireI64>,
encoder: &mut E,
out: &mut MaybeUninit<<WireI64 as EncodableOption>::EncodedOption>,
) -> Result<(), EncodeError>
fn encode_option_ref( this: Option<&WireI64>, encoder: &mut E, out: &mut MaybeUninit<<WireI64 as EncodableOption>::EncodedOption>, ) -> Result<(), EncodeError>
Encodes this optional reference into an encoder and output.
§impl<E> EncodeRef<E> for WireI64where
E: ?Sized,
impl<E> EncodeRef<E> for WireI64where
E: ?Sized,
§fn encode_ref(
&self,
_: &mut E,
out: &mut MaybeUninit<<WireI64 as Encodable>::Encoded>,
) -> Result<(), EncodeError>
fn encode_ref( &self, _: &mut E, out: &mut MaybeUninit<<WireI64 as Encodable>::Encoded>, ) -> Result<(), EncodeError>
Encodes this reference into an encoder and output.
§impl FromBytes for WireI64where
i64: FromBytes,
impl FromBytes for WireI64where
i64: FromBytes,
§fn ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
fn ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
§fn ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
fn ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
§fn ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: Immutable + KnownLayout,
fn ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: Immutable + KnownLayout,
Interprets the suffix of the given bytes as a
&Self
. Read more§fn mut_from_bytes(
source: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_bytes(
source: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
§fn mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
§fn mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
§fn ref_from_bytes_with_elems(
source: &[u8],
count: usize,
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
fn ref_from_bytes_with_elems(
source: &[u8],
count: usize,
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
§fn ref_from_prefix_with_elems(
source: &[u8],
count: usize,
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
fn ref_from_prefix_with_elems(
source: &[u8],
count: usize,
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
§fn ref_from_suffix_with_elems(
source: &[u8],
count: usize,
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
fn ref_from_suffix_with_elems(
source: &[u8],
count: usize,
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
§fn mut_from_bytes_with_elems(
source: &mut [u8],
count: usize,
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout<PointerMetadata = usize> + Immutable,
fn mut_from_bytes_with_elems(
source: &mut [u8],
count: usize,
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout<PointerMetadata = usize> + Immutable,
§fn mut_from_prefix_with_elems(
source: &mut [u8],
count: usize,
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout<PointerMetadata = usize>,
fn mut_from_prefix_with_elems(
source: &mut [u8],
count: usize,
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout<PointerMetadata = usize>,
§fn mut_from_suffix_with_elems(
source: &mut [u8],
count: usize,
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout<PointerMetadata = usize>,
fn mut_from_suffix_with_elems(
source: &mut [u8],
count: usize,
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout<PointerMetadata = usize>,
§impl<T> FromWire<WireI64> for Instant<T>where
T: Timeline,
impl<T> FromWire<WireI64> for Instant<T>where
T: Timeline,
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
§impl<T> FromWire<WireI64> for Instant<T, TicksUnit>where
T: Timeline,
impl<T> FromWire<WireI64> for Instant<T, TicksUnit>where
T: Timeline,
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
§impl FromWire<WireI64> for WireI64
impl FromWire<WireI64> for WireI64
§const COPY_OPTIMIZATION: CopyOptimization<WireI64, WireI64> = CopyOptimization<WireI64, WireI64>::PRIMITIVE
const COPY_OPTIMIZATION: CopyOptimization<WireI64, WireI64> = CopyOptimization<WireI64, WireI64>::PRIMITIVE
§impl FromWire<WireI64> for i64
impl FromWire<WireI64> for i64
§const COPY_OPTIMIZATION: CopyOptimization<WireI64, i64> = CopyOptimization<WireI64, i64>::PRIMITIVE
const COPY_OPTIMIZATION: CopyOptimization<WireI64, i64> = CopyOptimization<WireI64, i64>::PRIMITIVE
§impl<T> FromWireRef<WireI64> for Instant<T>where
T: Timeline,
impl<T> FromWireRef<WireI64> for Instant<T>where
T: Timeline,
§fn from_wire_ref(wire: &WireI64) -> Instant<T>
fn from_wire_ref(wire: &WireI64) -> Instant<T>
Converts the given
wire
reference to this type.§impl<T> FromWireRef<WireI64> for Instant<T, TicksUnit>where
T: Timeline,
impl<T> FromWireRef<WireI64> for Instant<T, TicksUnit>where
T: Timeline,
§fn from_wire_ref(wire: &WireI64) -> Instant<T, TicksUnit>
fn from_wire_ref(wire: &WireI64) -> Instant<T, TicksUnit>
Converts the given
wire
reference to this type.§impl FromWireRef<WireI64> for WireI64
impl FromWireRef<WireI64> for WireI64
§fn from_wire_ref(wire: &WireI64) -> WireI64
fn from_wire_ref(wire: &WireI64) -> WireI64
Converts the given
wire
reference to this type.§impl FromWireRef<WireI64> for i64
impl FromWireRef<WireI64> for i64
§fn from_wire_ref(wire: &WireI64) -> i64
fn from_wire_ref(wire: &WireI64) -> i64
Converts the given
wire
reference to this type.§impl IntoBytes for WireI64
impl IntoBytes for WireI64
§fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
Gets the bytes of this value mutably. Read more
§fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
§impl MulAssign<&WireI64> for WireI64
impl MulAssign<&WireI64> for WireI64
§fn mul_assign(&mut self, other: &WireI64)
fn mul_assign(&mut self, other: &WireI64)
Performs the
*=
operation. Read more§impl MulAssign<&i64> for WireI64
impl MulAssign<&i64> for WireI64
§fn mul_assign(&mut self, other: &i64)
fn mul_assign(&mut self, other: &i64)
Performs the
*=
operation. Read more§impl MulAssign<i64> for WireI64
impl MulAssign<i64> for WireI64
§fn mul_assign(&mut self, other: i64)
fn mul_assign(&mut self, other: i64)
Performs the
*=
operation. Read more§impl MulAssign for WireI64
impl MulAssign for WireI64
§fn mul_assign(&mut self, other: WireI64)
fn mul_assign(&mut self, other: WireI64)
Performs the
*=
operation. Read more§impl Ord for WireI64
impl Ord for WireI64
§impl PartialOrd<i64> for WireI64
impl PartialOrd<i64> for WireI64
§impl PartialOrd for WireI64
impl PartialOrd for WireI64
§impl RemAssign<&WireI64> for WireI64
impl RemAssign<&WireI64> for WireI64
§fn rem_assign(&mut self, other: &WireI64)
fn rem_assign(&mut self, other: &WireI64)
Performs the
%=
operation. Read more§impl RemAssign<&i64> for WireI64
impl RemAssign<&i64> for WireI64
§fn rem_assign(&mut self, other: &i64)
fn rem_assign(&mut self, other: &i64)
Performs the
%=
operation. Read more§impl RemAssign<i64> for WireI64
impl RemAssign<i64> for WireI64
§fn rem_assign(&mut self, other: i64)
fn rem_assign(&mut self, other: i64)
Performs the
%=
operation. Read more§impl RemAssign for WireI64
impl RemAssign for WireI64
§fn rem_assign(&mut self, other: WireI64)
fn rem_assign(&mut self, other: WireI64)
Performs the
%=
operation. Read more§impl ShlAssign<&WireI64> for WireI64
impl ShlAssign<&WireI64> for WireI64
§fn shl_assign(&mut self, other: &WireI64)
fn shl_assign(&mut self, other: &WireI64)
Performs the
<<=
operation. Read more§impl ShlAssign<&i64> for WireI64
impl ShlAssign<&i64> for WireI64
§fn shl_assign(&mut self, other: &i64)
fn shl_assign(&mut self, other: &i64)
Performs the
<<=
operation. Read more§impl ShlAssign<i64> for WireI64
impl ShlAssign<i64> for WireI64
§fn shl_assign(&mut self, other: i64)
fn shl_assign(&mut self, other: i64)
Performs the
<<=
operation. Read more§impl ShlAssign for WireI64
impl ShlAssign for WireI64
§fn shl_assign(&mut self, other: WireI64)
fn shl_assign(&mut self, other: WireI64)
Performs the
<<=
operation. Read more§impl ShrAssign<&WireI64> for WireI64
impl ShrAssign<&WireI64> for WireI64
§fn shr_assign(&mut self, other: &WireI64)
fn shr_assign(&mut self, other: &WireI64)
Performs the
>>=
operation. Read more§impl ShrAssign<&i64> for WireI64
impl ShrAssign<&i64> for WireI64
§fn shr_assign(&mut self, other: &i64)
fn shr_assign(&mut self, other: &i64)
Performs the
>>=
operation. Read more§impl ShrAssign<i64> for WireI64
impl ShrAssign<i64> for WireI64
§fn shr_assign(&mut self, other: i64)
fn shr_assign(&mut self, other: i64)
Performs the
>>=
operation. Read more§impl ShrAssign for WireI64
impl ShrAssign for WireI64
§fn shr_assign(&mut self, other: WireI64)
fn shr_assign(&mut self, other: WireI64)
Performs the
>>=
operation. Read more§impl SubAssign<&WireI64> for WireI64
impl SubAssign<&WireI64> for WireI64
§fn sub_assign(&mut self, other: &WireI64)
fn sub_assign(&mut self, other: &WireI64)
Performs the
-=
operation. Read more§impl SubAssign<&i64> for WireI64
impl SubAssign<&i64> for WireI64
§fn sub_assign(&mut self, other: &i64)
fn sub_assign(&mut self, other: &i64)
Performs the
-=
operation. Read more§impl SubAssign<i64> for WireI64
impl SubAssign<i64> for WireI64
§fn sub_assign(&mut self, other: i64)
fn sub_assign(&mut self, other: i64)
Performs the
-=
operation. Read more§impl SubAssign for WireI64
impl SubAssign for WireI64
§fn sub_assign(&mut self, other: WireI64)
fn sub_assign(&mut self, other: WireI64)
Performs the
-=
operation. Read more§impl TryFromBytes for WireI64where
i64: TryFromBytes,
impl TryFromBytes for WireI64where
i64: TryFromBytes,
§fn try_ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
fn try_ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
§fn try_ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
fn try_ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
§fn try_ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
fn try_ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
§fn try_mut_from_bytes(
bytes: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
fn try_mut_from_bytes(
bytes: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
§fn try_mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
fn try_mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
§fn try_mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
fn try_mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
§fn try_ref_from_bytes_with_elems(
source: &[u8],
count: usize,
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
fn try_ref_from_bytes_with_elems(
source: &[u8],
count: usize,
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
§fn try_ref_from_prefix_with_elems(
source: &[u8],
count: usize,
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
fn try_ref_from_prefix_with_elems(
source: &[u8],
count: usize,
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
Attempts to interpret the prefix of the given
source
as a &Self
with
a DST length equal to count
. Read more§fn try_ref_from_suffix_with_elems(
source: &[u8],
count: usize,
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
fn try_ref_from_suffix_with_elems(
source: &[u8],
count: usize,
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
Attempts to interpret the suffix of the given
source
as a &Self
with
a DST length equal to count
. Read more§fn try_mut_from_bytes_with_elems(
source: &mut [u8],
count: usize,
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + IntoBytes,
fn try_mut_from_bytes_with_elems(
source: &mut [u8],
count: usize,
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + IntoBytes,
§fn try_mut_from_prefix_with_elems(
source: &mut [u8],
count: usize,
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + IntoBytes,
fn try_mut_from_prefix_with_elems(
source: &mut [u8],
count: usize,
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + IntoBytes,
Attempts to interpret the prefix of the given
source
as a &mut Self
with a DST length equal to count
. Read more§fn try_mut_from_suffix_with_elems(
source: &mut [u8],
count: usize,
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + IntoBytes,
fn try_mut_from_suffix_with_elems(
source: &mut [u8],
count: usize,
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + IntoBytes,
Attempts to interpret the suffix of the given
source
as a &mut Self
with a DST length equal to count
. Read more§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,
§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,
§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,
§impl Wire for WireI64
impl Wire for WireI64
§fn zero_padding(_: &mut MaybeUninit<WireI64>)
fn zero_padding(_: &mut MaybeUninit<WireI64>)
Writes zeroes to the padding for this type, if any.
impl Copy for WireI64
impl Eq for WireI64
Auto Trait Implementations§
impl Freeze for WireI64
impl RefUnwindSafe for WireI64
impl Send for WireI64
impl Sync for WireI64
impl Unpin for WireI64
impl UnwindSafe for WireI64
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T, W> FromWireOption<WireBox<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<WireBox<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: WireBox<'_, W>) -> Option<T>
fn from_wire_option(wire: WireBox<'_, W>) -> Option<T>
Converts the given
wire
to an option of this type.§impl<T, W> FromWireOptionRef<WireBox<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<WireBox<'_, W>> for Twhere
T: FromWireRef<W>,
§fn from_wire_option_ref(wire: &WireBox<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &WireBox<'_, W>) -> Option<T>
Converts the given
wire
reference to an option of this type.