[][src]Struct ckb_fixed_hash_core::H512

pub struct H512(pub [u8; 64]);

The 64-byte fixed-length binary data.

The name comes from the number of bits in the data.

In JSONRPC, it is encoded as a 0x-prefixed hex string.

Implementations

impl H512[src]

pub fn as_bytes(&self) -> &[u8][src]

pub fn from_slice(input: &[u8]) -> Result<Self, FromSliceError>[src]

impl H512[src]

pub fn from_trimmed_str(input: &str) -> Result<Self, FromStrError>[src]

Trait Implementations

impl AsMut<[u8]> for H512[src]

impl AsRef<[u8]> for H512[src]

impl Clone for H512[src]

impl Debug for H512[src]

impl Default for H512[src]

impl<'de> Deserialize<'de> for H512[src]

impl Display for H512[src]

impl Eq for H512[src]

impl From<[u8; 64]> for H512[src]

impl From<H512> for [u8; 64][src]

impl FromStr for H512[src]

type Err = FromStrError

The associated error which can be returned from parsing.

impl Hash for H512[src]

impl LowerHex for H512[src]

impl Ord for H512[src]

impl PartialEq<H512> for H512[src]

impl PartialOrd<H512> for H512[src]

impl Serialize for H512[src]

Auto Trait Implementations

impl RefUnwindSafe for H512

impl Send for H512

impl Sync for H512

impl Unpin for H512

impl UnwindSafe for H512

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.