Struct plutus_data::cp
source · pub struct cp(_);
Implementations§
source§impl CustomPlutus
impl CustomPlutus
pub fn make_map<K: ToPlutusData, V: ToPlutusData>( original_map: &HashMap<K, V>, attributes: &[String] ) -> Result<CustomPlutus, String>
pub fn make_bt_map<K: ToPlutusData, V: ToPlutusData>( original_map: &BTreeMap<K, V>, attributes: &[String] ) -> Result<CustomPlutus, String>
pub fn to_hex(&self) -> String
pub fn as_pallas(&self) -> Option<&PlutusData>
pub fn p_str(s: &str) -> CustomPlutus
pub fn to_big_int(n: i64) -> BigInt
pub fn to_big_uint(n: u64) -> BigInt
pub fn to_big_int128(n: i128) -> Result<BigInt, String>
pub fn to_big_uint128(n: u128) -> Result<BigInt, String>
pub fn big_int(n: i64) -> Self
pub fn make_constr(plutus_tag: u64, fields: Vec<PlutusData>) -> PlutusData
pub fn make_list<T: ToPlutusData + Debug>( items: &Vec<T>, attributes: &[String] ) -> Result<CustomPlutus, String>
Auto Trait Implementations§
impl RefUnwindSafe for CustomPlutus
impl Send for CustomPlutus
impl Sync for CustomPlutus
impl Unpin for CustomPlutus
impl UnwindSafe for CustomPlutus
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