pub struct RelaRegular64 {
pub offset: u64,
pub info: RelInfoRegular64,
pub addend: i64,
}Fields§
§offset: u64§info: RelInfoRegular64§addend: i64Implementations§
Source§impl RelaRegular64
impl RelaRegular64
pub fn to_rel_and_addend(self) -> (RelRegular64, i64)
pub fn from_rel_and_addend(rel: RelRegular64, addend: i64) -> Self
Trait Implementations§
Source§impl BinarySerde for RelaRegular64
impl BinarySerde for RelaRegular64
Source§const SERIALIZED_SIZE: usize = 24usize
const SERIALIZED_SIZE: usize = 24usize
the size of this type when serialized to a packed binary format.
Source§type RecursiveArray = RecursiveArrayConcatenation<u8, RecursiveArrayConcatenation<u8, RecursiveArrayConcatenation<u8, EmptyRecursiveArray, <u64 as BinarySerde>::RecursiveArray>, <RelInfoRegular64 as BinarySerde>::RecursiveArray>, <i64 as BinarySerde>::RecursiveArray>
type RecursiveArray = RecursiveArrayConcatenation<u8, RecursiveArrayConcatenation<u8, RecursiveArrayConcatenation<u8, EmptyRecursiveArray, <u64 as BinarySerde>::RecursiveArray>, <RelInfoRegular64 as BinarySerde>::RecursiveArray>, <i64 as BinarySerde>::RecursiveArray>
the fixed size recursive array type that is returned when serializing this type to an array.
the length of this array is guaranteed to be equal to
Self::SERIALIZED_SIZE.Source§fn binary_serialize(&self, buf: &mut [u8], endianness: Endianness)
fn binary_serialize(&self, buf: &mut [u8], endianness: Endianness)
serialize this value into the given buffer using the given endianness. Read more
Source§fn binary_deserialize(
buf: &[u8],
endianness: Endianness,
) -> Result<Self, DeserializeError>
fn binary_deserialize( buf: &[u8], endianness: Endianness, ) -> Result<Self, DeserializeError>
deserializes the given buffer using the given endianness into a value of this type. Read more
Source§fn binary_serialize_to_array(
&self,
endianness: Endianness,
) -> Self::RecursiveArray
fn binary_serialize_to_array( &self, endianness: Endianness, ) -> Self::RecursiveArray
serialize this value to a fixed size array using the given endianness.
Source§impl Clone for RelaRegular64
impl Clone for RelaRegular64
Source§fn clone(&self) -> RelaRegular64
fn clone(&self) -> RelaRegular64
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RelaRegular64
impl Debug for RelaRegular64
Source§impl Hash for RelaRegular64
impl Hash for RelaRegular64
Source§impl PartialEq for RelaRegular64
impl PartialEq for RelaRegular64
impl Eq for RelaRegular64
impl StructuralPartialEq for RelaRegular64
Auto Trait Implementations§
impl Freeze for RelaRegular64
impl RefUnwindSafe for RelaRegular64
impl Send for RelaRegular64
impl Sync for RelaRegular64
impl Unpin for RelaRegular64
impl UnwindSafe for RelaRegular64
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