pub struct SerializedTxid(pub [u8; 32]);Tuple Fields§
§0: [u8; 32]Implementations§
Trait Implementations§
Source§impl AsRef<[u8]> for SerializedTxid
impl AsRef<[u8]> for SerializedTxid
Source§impl BorshDeserialize for SerializedTxid
Available on crate feature borsh only.
impl BorshDeserialize for SerializedTxid
Available on crate feature
borsh only.fn deserialize_reader<R>(reader: &mut R) -> Result<SerializedTxid, Error>where
R: Read,
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for SerializedTxid
Available on crate feature borsh only.
impl BorshSerialize for SerializedTxid
Available on crate feature
borsh only.Source§impl Clone for SerializedTxid
impl Clone for SerializedTxid
Source§fn clone(&self) -> SerializedTxid
fn clone(&self) -> SerializedTxid
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SerializedTxid
impl Debug for SerializedTxid
Source§impl<'de> Deserialize<'de> for SerializedTxid
Available on crate feature serde only.
impl<'de> Deserialize<'de> for SerializedTxid
Available on crate feature
serde only.Source§fn deserialize<D>(
deserializer: D,
) -> Result<SerializedTxid, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<SerializedTxid, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SerializedTxid
impl Display for SerializedTxid
Source§impl From<&&Txid> for SerializedTxid
impl From<&&Txid> for SerializedTxid
Source§fn from(txid: &&Txid) -> SerializedTxid
fn from(txid: &&Txid) -> SerializedTxid
Converts to this type from the input type.
Source§impl From<&[u8]> for SerializedTxid
impl From<&[u8]> for SerializedTxid
Source§fn from(txid: &[u8]) -> SerializedTxid
fn from(txid: &[u8]) -> SerializedTxid
Converts to this type from the input type.
Source§impl From<&Txid> for SerializedTxid
impl From<&Txid> for SerializedTxid
Source§fn from(txid: &Txid) -> SerializedTxid
fn from(txid: &Txid) -> SerializedTxid
Converts to this type from the input type.
Source§impl From<Txid> for SerializedTxid
impl From<Txid> for SerializedTxid
Source§fn from(txid: Txid) -> SerializedTxid
fn from(txid: Txid) -> SerializedTxid
Converts to this type from the input type.
Source§impl FromStr for SerializedTxid
impl FromStr for SerializedTxid
Source§type Err = FromHexError
type Err = FromHexError
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<SerializedTxid, <SerializedTxid as FromStr>::Err>
fn from_str(s: &str) -> Result<SerializedTxid, <SerializedTxid as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for SerializedTxid
impl Hash for SerializedTxid
Source§impl PartialEq for SerializedTxid
impl PartialEq for SerializedTxid
Source§impl Serialize for SerializedTxid
Available on crate feature serde only.
impl Serialize for SerializedTxid
Available on crate feature
serde only.Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for SerializedTxid
impl Eq for SerializedTxid
impl StructuralPartialEq for SerializedTxid
Auto Trait Implementations§
impl Freeze for SerializedTxid
impl RefUnwindSafe for SerializedTxid
impl Send for SerializedTxid
impl Sync for SerializedTxid
impl Unpin for SerializedTxid
impl UnwindSafe for SerializedTxid
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToHex for T
impl<T> ToHex for T
Source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Lower case
letters are used (e.g. f9b4ca)Source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Upper case
letters are used (e.g. F9B4CA)Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.