pub struct ConstrPlutusData { /* private fields */ }
Implementations§
source§impl ConstrPlutusData
impl ConstrPlutusData
pub fn from_bytes(bytes: Vec<u8>) -> Result<ConstrPlutusData, DeserializeError>
source§impl ConstrPlutusData
impl ConstrPlutusData
pub fn from_hex(hex_str: &str) -> Result<ConstrPlutusData, DeserializeError>
source§impl ConstrPlutusData
impl ConstrPlutusData
pub fn alternative(&self) -> BigNum
pub fn data(&self) -> PlutusList
pub fn new(alternative: &BigNum, data: &PlutusList) -> Self
Trait Implementations§
source§impl Clone for ConstrPlutusData
impl Clone for ConstrPlutusData
source§fn clone(&self) -> ConstrPlutusData
fn clone(&self) -> ConstrPlutusData
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 ConstrPlutusData
impl Debug for ConstrPlutusData
source§impl Deserialize for ConstrPlutusData
impl Deserialize for ConstrPlutusData
fn deserialize<R: BufRead + Seek>(
raw: &mut Deserializer<R>
) -> Result<Self, DeserializeError>
source§impl Ord for ConstrPlutusData
impl Ord for ConstrPlutusData
source§fn cmp(&self, other: &ConstrPlutusData) -> Ordering
fn cmp(&self, other: &ConstrPlutusData) -> 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<ConstrPlutusData> for ConstrPlutusData
impl PartialEq<ConstrPlutusData> for ConstrPlutusData
source§fn eq(&self, other: &ConstrPlutusData) -> bool
fn eq(&self, other: &ConstrPlutusData) -> bool
source§impl PartialOrd<ConstrPlutusData> for ConstrPlutusData
impl PartialOrd<ConstrPlutusData> for ConstrPlutusData
source§fn partial_cmp(&self, other: &ConstrPlutusData) -> Option<Ordering>
fn partial_cmp(&self, other: &ConstrPlutusData) -> 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 more