Struct ckb_types::packed::Script[][src]

pub struct Script(_);

Implementations

impl Script[src]

pub const FIELD_COUNT: usize[src]

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

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

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

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

pub fn code_hash(&self) -> Byte32[src]

pub fn hash_type(&self) -> Byte[src]

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

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

impl Script[src]

impl Script[src]

pub fn occupied_capacity(&self) -> CapacityResult<Capacity>[src]

Calculates the occupied capacity of Script.

Includes code_hash (32), hash_type (1) and args (calculated).

impl Script[src]

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

Converts self into bytes of CellbaseWitness.

pub fn from_witness(witness: Bytes) -> Option<Self>[src]

Converts from bytes of CellbaseWitness.

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

Checks whether the own hash_type is Type.

Trait Implementations

impl Clone for Script[src]

impl Debug for Script[src]

impl Default for Script[src]

impl Display for Script[src]

impl Entity for Script[src]

type Builder = ScriptBuilder

impl Eq for Script[src]

impl Hash for Script[src]

impl LowerHex for Script[src]

impl PartialEq<Script> for Script[src]

Auto Trait Implementations

impl RefUnwindSafe for Script

impl Send for Script

impl Sync for Script

impl Unpin for Script

impl UnwindSafe for Script

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.

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