Struct casper_types::DeployHash[][src]

pub struct DeployHash(_);

A newtype wrapping a [[u8; DEPLOY_HASH_LENGTH]] which is the raw bytes of the deploy hash.

Implementations

impl DeployHash[src]

pub const fn new(value: [u8; 32]) -> DeployHash[src]

Constructs a new DeployHash instance from the raw bytes of a deploy hash.

pub fn value(&self) -> [u8; 32][src]

Returns the raw bytes of the deploy hash as an array.

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

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Returns the raw bytes of the deploy hash as a slice.

Trait Implementations

impl Clone for DeployHash[src]

impl Copy for DeployHash[src]

impl DataSize for DeployHash[src]

impl Debug for DeployHash[src]

impl Default for DeployHash[src]

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

impl Eq for DeployHash[src]

impl FromBytes for DeployHash[src]

impl Hash for DeployHash[src]

impl Ord for DeployHash[src]

impl PartialEq<DeployHash> for DeployHash[src]

impl PartialOrd<DeployHash> for DeployHash[src]

impl Serialize for DeployHash[src]

impl StructuralEq for DeployHash[src]

impl StructuralPartialEq for DeployHash[src]

impl ToBytes for DeployHash[src]

Auto Trait Implementations

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> Conv for T

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

impl<T> FmtForward for T

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

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

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

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