pub struct Constr<A> {
pub tag: u64,
pub any_constructor: Option<u64>,
pub fields: MaybeIndefArray<A>,
}Fields§
§tag: u64§any_constructor: Option<u64>§fields: MaybeIndefArray<A>Implementations§
Trait Implementations§
Source§impl AsPlutus for Constr<PlutusData>
impl AsPlutus for Constr<PlutusData>
fn from_plutus(data: PlutusData) -> Result<Self, DecodeError>
fn to_plutus(self) -> PlutusData
fn from_plutus_bytes(bytes: &[u8]) -> Result<Self, DecodeError>
fn to_plutus_bytes(self) -> Vec<u8> ⓘ
fn vec_from_plutus(data: PlutusData) -> Result<Vec<Self>, DecodeError>
fn vec_to_plutus(value: Vec<Self>) -> PlutusData
fn array_from_plutus<const N: usize>( data: PlutusData, ) -> Result<[Self; N], DecodeError>
fn array_to_plutus<const N: usize>(value: [Self; N]) -> PlutusData
Source§impl<'de, A> Deserialize<'de> for Constr<A>where
A: Deserialize<'de>,
impl<'de, A> Deserialize<'de> for Constr<A>where
A: Deserialize<'de>,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Constr<A>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Constr<A>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<A> Ord for Constr<A>where
A: Ord,
impl<A> Ord for Constr<A>where
A: Ord,
Source§impl<A> PartialOrd for Constr<A>where
A: Ord,
impl<A> PartialOrd for Constr<A>where
A: Ord,
Source§impl<A> Serialize for Constr<A>where
A: Serialize,
impl<A> Serialize for Constr<A>where
A: Serialize,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<A> Eq for Constr<A>where
A: Ord,
Auto Trait Implementations§
impl<A> Freeze for Constr<A>
impl<A> RefUnwindSafe for Constr<A>where
A: RefUnwindSafe,
impl<A> Send for Constr<A>where
A: Send,
impl<A> Sync for Constr<A>where
A: Sync,
impl<A> Unpin for Constr<A>where
A: Unpin,
impl<A> UnwindSafe for Constr<A>where
A: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.