[][src]Struct ckb_standalone_types::packed::Bytes

pub struct Bytes(_);

Implementations

impl Bytes[src]

pub const ITEM_SIZE: usize[src]

pub fn total_size(&self) -> usize[src]

pub fn item_count(&self) -> usize[src]

pub fn len(&self) -> usize[src]

pub fn is_empty(&self) -> bool[src]

pub fn get(&self, idx: usize) -> Option<Byte>[src]

pub fn get_unchecked(&self, idx: usize) -> Byte[src]

pub fn raw_data(&self) -> Bytes[src]

pub fn as_reader<'r>(&'r self) -> BytesReader<'r>[src]

Trait Implementations

impl Clone for Bytes[src]

impl Debug for Bytes[src]

impl Default for Bytes[src]

impl Display for Bytes[src]

impl Entity for Bytes[src]

type Builder = BytesBuilder

impl IntoIterator for Bytes[src]

type Item = Byte

The type of the elements being iterated over.

type IntoIter = BytesIterator

Which kind of iterator are we turning this into?

impl LowerHex for Bytes[src]

impl Pack<Bytes> for Bytes[src]

impl Pack<Bytes> for [u8][src]

impl Pack<Bytes> for str[src]

impl Pack<Bytes> for String[src]

impl<T> PackVec<BytesVec, Bytes> for T where
    T: IntoIterator<Item = Bytes>, 
[src]

impl Unpack<Bytes> for Bytes[src]

impl Unpack<Vec<u8>> for Bytes[src]

Auto Trait Implementations

impl RefUnwindSafe for Bytes

impl Send for Bytes

impl Sync for Bytes

impl Unpin for Bytes

impl UnwindSafe for Bytes

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<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> PackVec<BytesVec, Bytes> for T where
    T: IntoIterator<Item = Bytes>, 
[src]

impl<T> PackVec<BytesVec, Bytes> for T where
    T: IntoIterator<Item = Bytes>, 
[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.