Enum ckb_types::core::ScriptHashType
source · [−]pub enum ScriptHashType {
Data,
Type,
Data1,
}
Expand description
Specifies how the script code_hash
is used to match the script code and how to run the code.
Variants
Data
Type “data” matches script code via cell data hash, and run the script code in v0 CKB VM.
Type
Type “type” matches script code via cell type script hash.
Data1
Type “data1” matches script code via cell data hash, and run the script code in v1 CKB VM.
Trait Implementations
sourceimpl Clone for ScriptHashType
impl Clone for ScriptHashType
sourcefn clone(&self) -> ScriptHashType
fn clone(&self) -> ScriptHashType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ScriptHashType
impl Debug for ScriptHashType
sourceimpl Default for ScriptHashType
impl Default for ScriptHashType
sourceimpl Hash for ScriptHashType
impl Hash for ScriptHashType
sourceimpl Into<Byte> for ScriptHashType
impl Into<Byte> for ScriptHashType
sourceimpl Into<u8> for ScriptHashType
impl Into<u8> for ScriptHashType
sourceimpl PartialEq<ScriptHashType> for ScriptHashType
impl PartialEq<ScriptHashType> for ScriptHashType
sourceimpl TryFrom<Byte> for ScriptHashType
impl TryFrom<Byte> for ScriptHashType
sourceimpl TryFrom<u8> for ScriptHashType
impl TryFrom<u8> for ScriptHashType
impl Copy for ScriptHashType
impl Eq for ScriptHashType
impl StructuralEq for ScriptHashType
impl StructuralPartialEq for ScriptHashType
Auto Trait Implementations
impl RefUnwindSafe for ScriptHashType
impl Send for ScriptHashType
impl Sync for ScriptHashType
impl Unpin for ScriptHashType
impl UnwindSafe for ScriptHashType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more