Struct ckb_jsonrpc_types::Byte32[][src]

pub struct Byte32(pub [u8; 32]);

Fixed-length 32 bytes binary encoded as a 0x-prefixed hex string in JSON.

Example

0xd495a106684401001e47c0ae1d5930009449d26e32380000000721efd0030000

Implementations

impl Byte32[src]

pub fn new(inner: [u8; 32]) -> Self[src]

Creates Bytes from the array.

Trait Implementations

impl Clone for Byte32[src]

impl Debug for Byte32[src]

impl Default for Byte32[src]

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

impl Eq for Byte32[src]

impl From<Byte32> for Byte32[src]

impl Hash for Byte32[src]

impl PartialEq<Byte32> for Byte32[src]

impl Serialize for Byte32[src]

impl StructuralEq for Byte32[src]

impl StructuralPartialEq for Byte32[src]

Auto Trait Implementations

impl RefUnwindSafe for Byte32

impl Send for Byte32

impl Sync for Byte32

impl Unpin for Byte32

impl UnwindSafe for Byte32

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, 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,