pub struct TransactionInfoReader<'r>(/* private fields */);
Implementations§
Source§impl<'r> TransactionInfoReader<'r>
impl<'r> TransactionInfoReader<'r>
pub const TOTAL_SIZE: usize = 52usize
pub const FIELD_SIZES: [usize; 3] = _
pub const FIELD_COUNT: usize = 3usize
pub fn block_number(&self) -> Uint64Reader<'r>
pub fn block_epoch(&self) -> Uint64Reader<'r>
pub fn key(&self) -> TransactionKeyReader<'r>
Trait Implementations§
Source§impl<'r> Clone for TransactionInfoReader<'r>
impl<'r> Clone for TransactionInfoReader<'r>
Source§fn clone(&self) -> TransactionInfoReader<'r>
fn clone(&self) -> TransactionInfoReader<'r>
Returns a copy 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<'r> Debug for TransactionInfoReader<'r>
impl<'r> Debug for TransactionInfoReader<'r>
Source§impl<'r> Display for TransactionInfoReader<'r>
impl<'r> Display for TransactionInfoReader<'r>
Source§impl<'r> LowerHex for TransactionInfoReader<'r>
impl<'r> LowerHex for TransactionInfoReader<'r>
Source§impl<'r> Reader<'r> for TransactionInfoReader<'r>
impl<'r> Reader<'r> for TransactionInfoReader<'r>
const NAME: &'static str = "TransactionInfoReader"
type Entity = TransactionInfo
fn to_entity(&self) -> <TransactionInfoReader<'r> as Reader<'r>>::Entity
fn new_unchecked(slice: &'r [u8]) -> TransactionInfoReader<'r>
fn as_slice(&self) -> &'r [u8] ⓘ
fn verify(slice: &[u8], _compatible: bool) -> Result<(), VerificationError>
fn from_slice(slice: &'r [u8]) -> Result<Self, VerificationError>
fn from_compatible_slice(slice: &'r [u8]) -> Result<Self, VerificationError>
Source§impl<'r> Unpack<TransactionInfo> for TransactionInfoReader<'r>
impl<'r> Unpack<TransactionInfo> for TransactionInfoReader<'r>
Source§fn unpack(&self) -> TransactionInfo
fn unpack(&self) -> TransactionInfo
Unpack binary data into rust types.
impl<'r> Copy for TransactionInfoReader<'r>
Auto Trait Implementations§
impl<'r> Freeze for TransactionInfoReader<'r>
impl<'r> RefUnwindSafe for TransactionInfoReader<'r>
impl<'r> Send for TransactionInfoReader<'r>
impl<'r> Sync for TransactionInfoReader<'r>
impl<'r> Unpin for TransactionInfoReader<'r>
impl<'r> UnwindSafe for TransactionInfoReader<'r>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<'r, R> FromSliceShouldBeOk<'r> for Rwhere
R: Reader<'r>,
impl<'r, R> FromSliceShouldBeOk<'r> for Rwhere
R: Reader<'r>,
Source§fn from_slice_should_be_ok(slice: &'r [u8]) -> R
fn from_slice_should_be_ok(slice: &'r [u8]) -> R
Unwraps the result of
from_slice(..)
with confidence and we assume that it’s impossible to fail.Source§fn from_compatible_slice_should_be_ok(slice: &'r [u8]) -> R
fn from_compatible_slice_should_be_ok(slice: &'r [u8]) -> R
Unwraps the result of
from_compatible_slice(..)
with confidence and we assume that it’s impossible to fail.