Trait bitcoin_hashes::serde_macros::serde_details::SerdeHash [−][src]
pub trait SerdeHash where
Self: Sized + FromStr + Display + Index<usize, Output = u8> + Index<RangeFull, Output = [u8]>,
Self::Err: Display, { const N: usize; fn from_slice_delegated(sl: &[u8]) -> Result<Self, Error>; fn serialize<S: Serializer>(&self, s: S) -> Result<S::Ok, S::Error> { ... } fn deserialize<'de, D: Deserializer<'de>>(d: D) -> Result<Self, D::Error> { ... } }
Default serialization/deserialization methods
Associated Constants
Loading content...Required methods
fn from_slice_delegated(sl: &[u8]) -> Result<Self, Error>
[src]
helper function to turn a deserialized slice into the correct hash type
Provided methods
fn serialize<S: Serializer>(&self, s: S) -> Result<S::Ok, S::Error>
[src]
serde serialization
fn deserialize<'de, D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
[src]
serde deserialization
Implementors
Loading content...