pub struct ShortId(/* private fields */);
Expand description
Short transaction IDs are used to represent a transaction without sending a full 256-bit hash.
Implementations§
source§impl ShortId
impl ShortId
sourcepub fn as_mut_ptr(&mut self) -> *mut u8
pub fn as_mut_ptr(&mut self) -> *mut u8
Converts the object to a mutable raw pointer.
Trait Implementations§
source§impl<'de> Deserialize<'de> for ShortId
impl<'de> Deserialize<'de> for ShortId
source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<ShortId, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<ShortId, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl FromHex for ShortId
impl FromHex for ShortId
source§fn from_byte_iter<I>(iter: I) -> Result<Self, HexToArrayError>where
I: Iterator<Item = Result<u8, HexToBytesError>> + ExactSizeIterator + DoubleEndedIterator,
fn from_byte_iter<I>(iter: I) -> Result<Self, HexToArrayError>where I: Iterator<Item = Result<u8, HexToBytesError>> + ExactSizeIterator + DoubleEndedIterator,
Produces an object from a byte iterator.
source§impl Ord for ShortId
impl Ord for ShortId
source§impl PartialEq<ShortId> for ShortId
impl PartialEq<ShortId> for ShortId
source§impl PartialOrd<ShortId> for ShortId
impl PartialOrd<ShortId> for ShortId
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 moreimpl Copy for ShortId
impl Eq for ShortId
impl StructuralEq for ShortId
impl StructuralPartialEq for ShortId
Auto Trait Implementations§
impl RefUnwindSafe for ShortId
impl Send for ShortId
impl Sync for ShortId
impl Unpin for ShortId
impl UnwindSafe for ShortId
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