[]Struct uckb_jsonrpc_core::types::packed::Byte

pub struct Byte(_);

Implementations

impl Byte

pub const NAME: &'static str

pub fn new(v: u8) -> Byte

pub fn new_unchecked(data: Bytes) -> Byte

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

pub fn as_bytes(self) -> Bytes

pub fn from_slice(slice: &[u8]) -> Result<Byte, VerificationError>

pub fn from_compatible_slice(slice: &[u8]) -> Result<Byte, VerificationError>

impl Byte

pub fn as_reader(&self) -> ByteReader<'_>

Trait Implementations

impl Clone for Byte

impl Copy for Byte

impl Debug for Byte

impl Default for Byte

impl Display for Byte

impl Eq for Byte

impl From<u8> for Byte

impl Hash for Byte

impl Into<Byte> for DepType[src]

impl Into<Byte> for ScriptHashType[src]

impl Ord for Byte

impl PartialEq<Byte> for Byte

impl PartialOrd<Byte> for Byte

impl StructuralEq for Byte

impl StructuralPartialEq for Byte

impl TryFrom<Byte> for DepType[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Byte> for ScriptHashType[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Byte

impl Send for Byte

impl Sync for Byte

impl Unpin for Byte

impl UnwindSafe for Byte

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[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.

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