Struct ckb_types::packed::Script [−][src]
pub struct Script(_);
Implementations
impl Script[src]
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 calc_script_hash(&self) -> Byte32[src]
pub fn calc_script_hash(&self) -> Byte32[src]Calls ScriptReader.calc_script_hash() for self.as_reader().
impl Script[src]
impl Script[src]pub fn occupied_capacity(&self) -> CapacityResult<Capacity>[src]
pub fn occupied_capacity(&self) -> CapacityResult<Capacity>[src]impl Script[src]
impl Script[src]pub fn into_witness(self) -> Bytes[src]
pub fn into_witness(self) -> Bytes[src]Converts self into bytes of CellbaseWitness.
pub fn from_witness(witness: Bytes) -> Option<Self>[src]
pub fn from_witness(witness: Bytes) -> Option<Self>[src]Converts from bytes of CellbaseWitness.
pub fn is_hash_type_type(&self) -> bool[src]
pub fn is_hash_type_type(&self) -> bool[src]Trait Implementations
impl Entity for Script[src]
impl Entity for Script[src]type Builder = ScriptBuilder
const NAME: &'static str[src]
fn new_unchecked(data: Bytes) -> Self[src]
fn as_bytes(&self) -> Bytes[src]
fn as_slice(&self) -> &[u8][src]
fn from_slice(slice: &[u8]) -> VerificationResult<Self>[src]
fn from_compatible_slice(slice: &[u8]) -> VerificationResult<Self>[src]
fn new_builder() -> Self::Builder[src]
fn as_builder(self) -> Self::Builder[src]
impl Eq 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> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,