[][src]Struct molecule::prelude::Byte

pub struct Byte(_);

Methods

impl Byte[src]

pub const NAME: &'static str[src]

pub fn new(v: u8) -> Self[src]

pub fn new_unchecked(data: Bytes) -> Self[src]

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

pub fn as_bytes(self) -> Bytes[src]

pub fn from_slice(slice: &[u8]) -> VerificationResult<Self>[src]

pub fn from_compatible_slice(slice: &[u8]) -> VerificationResult<Self>[src]

impl Byte[src]

pub fn as_reader(&self) -> ByteReader[src]

Trait Implementations

impl Clone for Byte[src]

impl Copy for Byte[src]

impl Debug for Byte[src]

impl Default for Byte[src]

impl Display for Byte[src]

impl Eq for Byte[src]

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

impl From<Byte> for u8[src]

impl From<u8> for Byte[src]

impl Hash for Byte[src]

impl Ord for Byte[src]

impl PartialEq<Byte> for Byte[src]

impl PartialOrd<Byte> for Byte[src]

impl StructuralEq for Byte[src]

impl StructuralPartialEq for Byte[src]

Auto Trait Implementations

impl Send for Byte

impl Sync for Byte

impl Unpin 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<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.