pub enum ScriptHashNamespace {
    NativeScript = 0,
    PlutusScript = 1,
    PlutusScriptV2 = 2,
    PlutusScriptV3 = 3,
}Expand description
Each new language uses a different namespace for hashing its script This is because you could have a language where the same bytes have different semantics So this avoids scripts in different languages mapping to the same hash Note that the enum value here is different than the enum value for deciding the cost model of a script
Variants§
Trait Implementations§
source§impl Clone for ScriptHashNamespace
 
impl Clone for ScriptHashNamespace
source§fn clone(&self) -> ScriptHashNamespace
 
fn clone(&self) -> ScriptHashNamespace
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 ScriptHashNamespace
 
impl Debug for ScriptHashNamespace
source§impl Ord for ScriptHashNamespace
 
impl Ord for ScriptHashNamespace
source§fn cmp(&self, other: &ScriptHashNamespace) -> Ordering
 
fn cmp(&self, other: &ScriptHashNamespace) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere
    Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ScriptHashNamespace
 
impl PartialEq for ScriptHashNamespace
source§fn eq(&self, other: &ScriptHashNamespace) -> bool
 
fn eq(&self, other: &ScriptHashNamespace) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl PartialOrd for ScriptHashNamespace
 
impl PartialOrd for ScriptHashNamespace
source§fn partial_cmp(&self, other: &ScriptHashNamespace) -> Option<Ordering>
 
fn partial_cmp(&self, other: &ScriptHashNamespace) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
 
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for 
self and other) and is used by the <=
operator. Read moreimpl Eq for ScriptHashNamespace
impl StructuralEq for ScriptHashNamespace
impl StructuralPartialEq for ScriptHashNamespace
Auto Trait Implementations§
impl RefUnwindSafe for ScriptHashNamespace
impl Send for ScriptHashNamespace
impl Sync for ScriptHashNamespace
impl Unpin for ScriptHashNamespace
impl UnwindSafe for ScriptHashNamespace
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