Struct cml_chain::byron::ByronScript
source · pub struct ByronScript(/* private fields */);Implementations§
source§impl ByronScript
impl ByronScript
pub const BYTE_COUNT: usize = 32usize
pub fn to_bech32(&self, prefix: &str) -> Result<String, CryptoError>
pub fn from_bech32(bech_str: &str) -> Result<ByronScript, CryptoError>
pub fn to_hex(&self) -> String
pub fn from_hex(input: &str) -> Result<Self, CryptoError>
Trait Implementations§
source§impl Clone for ByronScript
impl Clone for ByronScript
source§fn clone(&self) -> ByronScript
fn clone(&self) -> ByronScript
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 ByronScript
impl Debug for ByronScript
source§impl<'de> Deserialize<'de> for ByronScript
impl<'de> Deserialize<'de> for ByronScript
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for ByronScript
impl Display for ByronScript
source§impl From<ByronScript> for [u8; 32]
impl From<ByronScript> for [u8; 32]
source§fn from(ByronScript: ByronScript) -> Self
fn from(ByronScript: ByronScript) -> Self
Converts to this type from the input type.
source§impl Hash for ByronScript
impl Hash for ByronScript
source§impl JsonSchema for ByronScript
impl JsonSchema for ByronScript
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moresource§impl Ord for ByronScript
impl Ord for ByronScript
source§fn cmp(&self, other: &ByronScript) -> Ordering
fn cmp(&self, other: &ByronScript) -> 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 ByronScript
impl PartialEq for ByronScript
source§fn eq(&self, other: &ByronScript) -> bool
fn eq(&self, other: &ByronScript) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for ByronScript
impl PartialOrd for ByronScript
source§fn partial_cmp(&self, other: &ByronScript) -> Option<Ordering>
fn partial_cmp(&self, other: &ByronScript) -> 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 moresource§impl RawBytesEncoding for ByronScript
impl RawBytesEncoding for ByronScript
fn to_raw_bytes(&self) -> &[u8] ⓘ
fn from_raw_bytes(bytes: &[u8]) -> Result<Self, CryptoError>
fn to_raw_hex(&self) -> String
fn from_raw_hex(hex_str: &str) -> Result<Self, CryptoError>where
Self: Sized,
source§impl Serialize for ByronScript
impl Serialize for ByronScript
impl Copy for ByronScript
impl Eq for ByronScript
impl StructuralPartialEq for ByronScript
Auto Trait Implementations§
impl Freeze for ByronScript
impl RefUnwindSafe for ByronScript
impl Send for ByronScript
impl Sync for ByronScript
impl Unpin for ByronScript
impl UnwindSafe for ByronScript
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