Enum ckb_sdk::traits::PrimaryScriptType
source · pub enum PrimaryScriptType {
Lock,
Type,
}Expand description
The primary serach script type
- if primary script type is
lockthen secondary script type istype - if primary script type is
typethen secondary script type islock
Variants§
Trait Implementations§
source§impl Clone for PrimaryScriptType
impl Clone for PrimaryScriptType
source§fn clone(&self) -> PrimaryScriptType
fn clone(&self) -> PrimaryScriptType
Returns a copy of the value. Read more
1.0.0 · 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 PrimaryScriptType
impl Debug for PrimaryScriptType
source§impl From<PrimaryScriptType> for ScriptType
impl From<PrimaryScriptType> for ScriptType
source§fn from(t: PrimaryScriptType) -> ScriptType
fn from(t: PrimaryScriptType) -> ScriptType
Converts to this type from the input type.
source§impl Hash for PrimaryScriptType
impl Hash for PrimaryScriptType
source§impl PartialEq<PrimaryScriptType> for PrimaryScriptType
impl PartialEq<PrimaryScriptType> for PrimaryScriptType
source§fn eq(&self, other: &PrimaryScriptType) -> bool
fn eq(&self, other: &PrimaryScriptType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for PrimaryScriptType
impl StructuralEq for PrimaryScriptType
impl StructuralPartialEq for PrimaryScriptType
Auto Trait Implementations§
impl RefUnwindSafe for PrimaryScriptType
impl Send for PrimaryScriptType
impl Sync for PrimaryScriptType
impl Unpin for PrimaryScriptType
impl UnwindSafe for PrimaryScriptType
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.