Struct snarkvm_debug::prelude::Mapping
pub struct Mapping<N>where
N: Network,{ /* private fields */ }Implementations§
§impl<N> Mapping<N>where
N: Network,
impl<N> Mapping<N>where
N: Network,
pub fn new(
name: Identifier<N>,
key: MapKey<N>,
value: MapValue<N>
) -> Mapping<N>
pub fn new( name: Identifier<N>, key: MapKey<N>, value: MapValue<N> ) -> Mapping<N>
Initializes a new mapping with the given name, key statement, and value statement.
pub const fn name(&self) -> &Identifier<N>
pub const fn name(&self) -> &Identifier<N>
Returns the name of the mapping.
pub const fn key(&self) -> &MapKey<N>
pub const fn key(&self) -> &MapKey<N>
Returns the key statement.
pub const fn value(&self) -> &MapValue<N>
pub const fn value(&self) -> &MapValue<N>
Returns the value statement.
Trait Implementations§
§impl<N> PartialEq for Mapping<N>
impl<N> PartialEq for Mapping<N>
impl<N> Eq for Mapping<N>
impl<N> StructuralEq for Mapping<N>where
N: Network,
impl<N> StructuralPartialEq for Mapping<N>where
N: Network,
Auto Trait Implementations§
impl<N> RefUnwindSafe for Mapping<N>
impl<N> Send for Mapping<N>
impl<N> Sync for Mapping<N>
impl<N> Unpin for Mapping<N>
impl<N> UnwindSafe for Mapping<N>
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<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.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.