[][src]Struct bitcoin_cash_base::ByteArray

pub struct ByteArray { /* fields omitted */ }

Methods

impl ByteArray[src]

pub fn debug_enabled() -> bool[src]

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

pub fn new_unnamed(data: impl Into<Arc<[u8]>>) -> Self[src]

pub fn from_preimage(
    data: Arc<[u8]>,
    name: Option<Arc<Cow<'static, str>>>,
    function: Function,
    preimage: Option<Arc<[ByteArray]>>
) -> Self
[src]

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

pub fn from_slice_unnamed(slice: &[u8]) -> Self[src]

pub fn function(&self) -> Function[src]

pub fn preimage(&self) -> Option<&[ByteArray]>[src]

pub fn preimage_arc(&self) -> Option<&Arc<[ByteArray]>>[src]

pub fn name(&self) -> Option<&str>[src]

pub fn name_arc(&self) -> Option<&Arc<Cow<'static, str>>>[src]

pub fn data(&self) -> &Arc<[u8]>[src]

pub fn concat_named_option(
    self,
    other: impl Into<ByteArray>,
    name: Option<Arc<Cow<'static, str>>>
) -> ByteArray
[src]

pub fn concat(self, other: impl Into<ByteArray>) -> ByteArray[src]

pub fn concat_named(
    self,
    name: impl Into<Arc<Cow<'static, str>>>,
    other: impl Into<ByteArray>
) -> ByteArray
[src]

pub fn split(self, at: usize) -> Result<(ByteArray, ByteArray), String>[src]

pub fn apply_function(
    self,
    data: impl Into<Arc<[u8]>>,
    function: Function
) -> ByteArray
[src]

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

pub fn named_option(self, name: Option<Arc<Cow<'static, str>>>) -> ByteArray[src]

pub fn from_int(int: Integer, n_bytes: Integer) -> Result<Self, String>[src]

Trait Implementations

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

impl BitcoinDataType for ByteArray[src]

type Type = BitcoinByteArray

impl Clone for ByteArray[src]

impl Debug for ByteArray[src]

impl Default for ByteArray[src]

impl Deref for ByteArray[src]

type Target = [u8]

The resulting type after dereferencing.

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

impl Eq for ByteArray[src]

impl<'_> From<&'_ [u8; 0]> for ByteArray[src]

impl<'_> From<&'_ [u8; 1]> for ByteArray[src]

impl<'_> From<&'_ [u8; 10]> for ByteArray[src]

impl<'_> From<&'_ [u8; 11]> for ByteArray[src]

impl<'_> From<&'_ [u8; 12]> for ByteArray[src]

impl<'_> From<&'_ [u8; 13]> for ByteArray[src]

impl<'_> From<&'_ [u8; 14]> for ByteArray[src]

impl<'_> From<&'_ [u8; 15]> for ByteArray[src]

impl<'_> From<&'_ [u8; 16]> for ByteArray[src]

impl<'_> From<&'_ [u8; 17]> for ByteArray[src]

impl<'_> From<&'_ [u8; 18]> for ByteArray[src]

impl<'_> From<&'_ [u8; 19]> for ByteArray[src]

impl<'_> From<&'_ [u8; 2]> for ByteArray[src]

impl<'_> From<&'_ [u8; 20]> for ByteArray[src]

impl<'_> From<&'_ [u8; 21]> for ByteArray[src]

impl<'_> From<&'_ [u8; 22]> for ByteArray[src]

impl<'_> From<&'_ [u8; 23]> for ByteArray[src]

impl<'_> From<&'_ [u8; 24]> for ByteArray[src]

impl<'_> From<&'_ [u8; 25]> for ByteArray[src]

impl<'_> From<&'_ [u8; 26]> for ByteArray[src]

impl<'_> From<&'_ [u8; 27]> for ByteArray[src]

impl<'_> From<&'_ [u8; 28]> for ByteArray[src]

impl<'_> From<&'_ [u8; 29]> for ByteArray[src]

impl<'_> From<&'_ [u8; 3]> for ByteArray[src]

impl<'_> From<&'_ [u8; 30]> for ByteArray[src]

impl<'_> From<&'_ [u8; 31]> for ByteArray[src]

impl<'_> From<&'_ [u8; 32]> for ByteArray[src]

impl<'_> From<&'_ [u8; 4]> for ByteArray[src]

impl<'_> From<&'_ [u8; 5]> for ByteArray[src]

impl<'_> From<&'_ [u8; 6]> for ByteArray[src]

impl<'_> From<&'_ [u8; 7]> for ByteArray[src]

impl<'_> From<&'_ [u8; 8]> for ByteArray[src]

impl<'_> From<&'_ [u8; 9]> for ByteArray[src]

impl<'_> From<&'_ [u8]> for ByteArray[src]

impl From<[u8; 0]> for ByteArray[src]

impl From<[u8; 1]> for ByteArray[src]

impl From<[u8; 10]> for ByteArray[src]

impl From<[u8; 11]> for ByteArray[src]

impl From<[u8; 12]> for ByteArray[src]

impl From<[u8; 13]> for ByteArray[src]

impl From<[u8; 14]> for ByteArray[src]

impl From<[u8; 15]> for ByteArray[src]

impl From<[u8; 16]> for ByteArray[src]

impl From<[u8; 17]> for ByteArray[src]

impl From<[u8; 18]> for ByteArray[src]

impl From<[u8; 19]> for ByteArray[src]

impl From<[u8; 2]> for ByteArray[src]

impl From<[u8; 20]> for ByteArray[src]

impl From<[u8; 21]> for ByteArray[src]

impl From<[u8; 22]> for ByteArray[src]

impl From<[u8; 23]> for ByteArray[src]

impl From<[u8; 24]> for ByteArray[src]

impl From<[u8; 25]> for ByteArray[src]

impl From<[u8; 26]> for ByteArray[src]

impl From<[u8; 27]> for ByteArray[src]

impl From<[u8; 28]> for ByteArray[src]

impl From<[u8; 29]> for ByteArray[src]

impl From<[u8; 3]> for ByteArray[src]

impl From<[u8; 30]> for ByteArray[src]

impl From<[u8; 31]> for ByteArray[src]

impl From<[u8; 32]> for ByteArray[src]

impl From<[u8; 4]> for ByteArray[src]

impl From<[u8; 5]> for ByteArray[src]

impl From<[u8; 6]> for ByteArray[src]

impl From<[u8; 7]> for ByteArray[src]

impl From<[u8; 8]> for ByteArray[src]

impl From<[u8; 9]> for ByteArray[src]

impl From<ByteArray> for Op[src]

impl From<Vec<u8>> for ByteArray[src]

impl Hash for ByteArray[src]

impl<I: SliceIndex<[u8]>> Index<I> for ByteArray[src]

type Output = I::Output

The returned type after indexing.

impl PartialEq<ByteArray> for ByteArray[src]

impl Serialize for ByteArray[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> 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.