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 Hash for ConstrPlutusData
impl Hash for ConstrPlutusData
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 for ConstrPlutusData
impl PartialEq for ConstrPlutusData
Source§impl PartialOrd for ConstrPlutusData
impl PartialOrd for ConstrPlutusData
Source§impl Serialize for ConstrPlutusData
impl Serialize for ConstrPlutusData
fn serialize<'se, W: Write>( &self, serializer: &'se mut Serializer<W>, ) -> Result<&'se mut Serializer<W>>
impl Eq for ConstrPlutusData
impl StructuralPartialEq for ConstrPlutusData
Auto Trait Implementations§
impl Freeze for ConstrPlutusData
impl RefUnwindSafe for ConstrPlutusData
impl Send for ConstrPlutusData
impl Sync for ConstrPlutusData
impl Unpin for ConstrPlutusData
impl UnwindSafe for ConstrPlutusData
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> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more