Struct clarity_repl::codec::Txid
source · pub struct Txid(pub [u8; 32]);Tuple Fields§
§0: [u8; 32]Implementations§
source§impl Txid
impl Txid
source§impl Txid
impl Txid
sourcepub fn from_bytes(inp: &[u8]) -> Option<Txid>
pub fn from_bytes(inp: &[u8]) -> Option<Txid>
Instantiates from a slice of bytes
sourcepub fn from_bytes_be(inp: &[u8]) -> Option<Txid>
pub fn from_bytes_be(inp: &[u8]) -> Option<Txid>
Instantiates from a slice of bytes, converting to host byte order
Trait Implementations§
source§impl<'de> Deserialize<'de> for Txid
impl<'de> Deserialize<'de> for Txid
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for Txid
impl Ord for Txid
source§impl PartialEq for Txid
impl PartialEq for Txid
source§impl PartialOrd for Txid
impl PartialOrd for Txid
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 Txid
impl Eq for Txid
Auto Trait Implementations§
impl RefUnwindSafe for Txid
impl Send for Txid
impl Sync for Txid
impl Unpin for Txid
impl UnwindSafe for Txid
Blanket Implementations§
§impl<T> Base32Len for Twhere
T: AsRef<[u8]>,
impl<T> Base32Len for Twhere T: AsRef<[u8]>,
§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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<S> SliceExt for Swhere
S: Index<RangeFull> + ?Sized,
impl<S> SliceExt for Swhere S: Index<RangeFull> + ?Sized,
§impl<T> ToBase32 for Twhere
T: AsRef<[u8]>,
impl<T> ToBase32 for Twhere T: AsRef<[u8]>,
§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.