Struct cardano_serialization_lib::address::Pointer
source · [−]pub struct Pointer { /* private fields */ }
Implementations
sourceimpl 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
Underlying value capacity of ttl (BigNum u64) bigger then Slot32. Use new_pointer instead.
!!! 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
sourceimpl Ord for Pointer
impl Ord for Pointer
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<Pointer> for Pointer
impl PartialEq<Pointer> for Pointer
sourceimpl PartialOrd<Pointer> for Pointer
impl PartialOrd<Pointer> for Pointer
sourcefn partial_cmp(&self, other: &Pointer) -> Option<Ordering>
fn partial_cmp(&self, other: &Pointer) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
impl Eq for Pointer
impl StructuralEq for Pointer
impl StructuralPartialEq for Pointer
Auto Trait Implementations
impl RefUnwindSafe for Pointer
impl Send for Pointer
impl Sync for Pointer
impl Unpin for Pointer
impl UnwindSafe for Pointer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more