[][src]Struct bitcoin_cash_base::FixedByteArray

pub struct FixedByteArray<T> { /* fields omitted */ }

Methods

impl<T> FixedByteArray<T>[src]

pub fn as_byte_array(&self) -> &ByteArray[src]

pub fn into_byte_array(self) -> ByteArray[src]

pub fn named(self, name: impl Into<Cow<'static, str>>) -> FixedByteArray<T>[src]

impl<T> FixedByteArray<T> where
    T: AsRef<[u8]>, 
[src]

pub fn new(name: impl Into<Cow<'static, str>>, data: T) -> Self[src]

pub fn new_unnamed(data: T) -> Self[src]

impl<T> FixedByteArray<T> where
    T: Default + AsRef<[u8]>, 
[src]

pub fn from_slice(
    name: impl Into<Cow<'static, str>>,
    slice: &[u8]
) -> Result<Self, FromSliceError>
[src]

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

pub fn from_byte_array(byte_array: ByteArray) -> Result<Self, FromSliceError>[src]

Trait Implementations

impl<T> AsRef<[u8]> for FixedByteArray<T>[src]

impl<T: Clone> Clone for FixedByteArray<T>[src]

impl<T: Debug> Debug for FixedByteArray<T>[src]

impl<T: Default + AsRef<[u8]>> Default for FixedByteArray<T>[src]

impl<T> Deref for FixedByteArray<T>[src]

type Target = [u8]

The resulting type after dereferencing.

impl<'de, T> Deserialize<'de> for FixedByteArray<T> where
    T: Deserialize<'de> + AsRef<[u8]>, 
[src]

impl<T> Eq for FixedByteArray<T>[src]

impl<T> Hash for FixedByteArray<T>[src]

impl<T, I: SliceIndex<[u8]>> Index<I> for FixedByteArray<T>[src]

type Output = I::Output

The returned type after indexing.

impl<T> PartialEq<FixedByteArray<T>> for FixedByteArray<T>[src]

impl<T> Serialize for FixedByteArray<T> where
    T: Serialize + Default + AsMut<[u8]>, 
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for FixedByteArray<T> where
    T: RefUnwindSafe

impl<T> Send for FixedByteArray<T> where
    T: Send

impl<T> Sync for FixedByteArray<T> where
    T: Sync

impl<T> Unpin for FixedByteArray<T> where
    T: Unpin

impl<T> UnwindSafe for FixedByteArray<T> where
    T: UnwindSafe

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: Deserialize<'de>, 
[src]

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

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

impl<T> ToHex for T where
    T: AsRef<[u8]>, 
[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.