pub struct ScriptLike {
pub code_hash: [u8; 32],
pub hash_type: HashType,
pub args: Vec<u8>,
}Expand description
A CKB script (lock or type) in its component form.
Fields§
§code_hash: [u8; 32]§hash_type: HashType§args: Vec<u8>Trait Implementations§
Source§impl Clone for ScriptLike
impl Clone for ScriptLike
Source§fn clone(&self) -> ScriptLike
fn clone(&self) -> ScriptLike
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScriptLike
impl Debug for ScriptLike
impl Eq for ScriptLike
Source§impl PartialEq for ScriptLike
impl PartialEq for ScriptLike
Source§fn eq(&self, other: &ScriptLike) -> bool
fn eq(&self, other: &ScriptLike) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ScriptLike
Auto Trait Implementations§
impl Freeze for ScriptLike
impl RefUnwindSafe for ScriptLike
impl Send for ScriptLike
impl Sync for ScriptLike
impl Unpin for ScriptLike
impl UnsafeUnpin for ScriptLike
impl UnwindSafe for ScriptLike
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more