pub struct PlutusMap(/* private fields */);
Implementations§
Source§impl PlutusMap
impl PlutusMap
pub fn from_bytes(bytes: Vec<u8>) -> Result<PlutusMap, DeserializeError>
Source§impl PlutusMap
impl PlutusMap
pub fn new() -> Self
Sourcepub fn insert(
&mut self,
key: &PlutusData,
values: &PlutusMapValues,
) -> Option<PlutusMapValues>
pub fn insert( &mut self, key: &PlutusData, values: &PlutusMapValues, ) -> Option<PlutusMapValues>
Returns the previous value associated with the key, if any. Replace the values associated with the key.
pub fn get(&self, key: &PlutusData) -> Option<PlutusMapValues>
pub fn keys(&self) -> PlutusList
Trait Implementations§
Source§impl Ord for PlutusMap
impl Ord for PlutusMap
Source§impl PartialOrd for PlutusMap
impl PartialOrd for PlutusMap
Source§impl Serialize for PlutusMap
impl Serialize for PlutusMap
fn serialize<'se, W: Write>( &self, serializer: &'se mut Serializer<W>, ) -> Result<&'se mut Serializer<W>>
impl Eq for PlutusMap
impl StructuralPartialEq for PlutusMap
Auto Trait Implementations§
impl Freeze for PlutusMap
impl RefUnwindSafe for PlutusMap
impl Send for PlutusMap
impl Sync for PlutusMap
impl Unpin for PlutusMap
impl UnwindSafe for PlutusMap
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