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 PartialOrd for Pointer
impl PartialOrd for Pointer
impl Eq for Pointer
impl StructuralPartialEq for Pointer
Auto Trait Implementations§
impl Freeze for Pointer
impl RefUnwindSafe for Pointer
impl Send for Pointer
impl Sync for Pointer
impl Unpin for Pointer
impl UnwindSafe for Pointer
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more