pub struct ShortId(_);
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
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for ShortId
Available on crate feature
serde
only.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 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> Base32Len for Twhere
T: AsRef<[u8]>,
impl<T> Base32Len for Twhere T: AsRef<[u8]>,
source§fn base32_len(&self) -> usize
fn base32_len(&self) -> usize
Calculate the base32 serialized length
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> ToBase32 for Twhere
T: AsRef<[u8]>,
impl<T> ToBase32 for Twhere T: AsRef<[u8]>,
source§fn write_base32<W>(&self, writer: &mut W) -> Result<(), <W as WriteBase32>::Err>where
W: WriteBase32,
fn write_base32<W>(&self, writer: &mut W) -> Result<(), <W as WriteBase32>::Err>where W: WriteBase32,
Encode as base32 and write it to the supplied writer
Implementations shouldn’t allocate.