Struct cardano_serialization_lib::address::Pointer
source · pub struct Pointer { /* private fields */ }
Implementations§
source§impl Pointer
impl Pointer
sourcepub fn new(slot: u32, tx_index: u32, cert_index: u32) -> Self
👎Deprecated since 10.1.0: Underlying value capacity of ttl (BigNum u64) bigger then Slot32. Use new_pointer instead.
pub fn new(slot: u32, tx_index: u32, cert_index: u32) -> Self
!!! DEPRECATED !!!
This constructor uses outdated slot number format for the ttl value, tx_index and cert_index.
Use .new_pointer
instead
pub fn new_pointer( slot: &BigNum, tx_index: &BigNum, cert_index: &BigNum ) -> Self
pub fn slot(&self) -> Result<u32, JsError>
pub fn tx_index(&self) -> Result<u32, JsError>
pub fn cert_index(&self) -> Result<u32, JsError>
pub fn slot_bignum(&self) -> BigNum
pub fn tx_index_bignum(&self) -> BigNum
pub fn cert_index_bignum(&self) -> BigNum
Trait Implementations§
source§impl Ord for Pointer
impl Ord for Pointer
source§impl PartialEq<Pointer> for Pointer
impl PartialEq<Pointer> for Pointer
source§impl PartialOrd<Pointer> for Pointer
impl PartialOrd<Pointer> for Pointer
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more