pub struct CREDITS_PROVING_KEYS { /* private fields */ }
Methods from Deref<Target = IndexMap<String, Arc<CircuitProvingKey<<Console as Environment>::PairingCurve, MarlinHidingMode>>>>§
sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
Return the number of key-value pairs in the map.
Computes in O(1) time.
sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true if the map contains no elements.
Computes in O(1) time.
sourcepub fn iter(&self) -> Iter<'_, K, V>
pub fn iter(&self) -> Iter<'_, K, V>
Return an iterator over the key-value pairs of the map, in their order
sourcepub fn contains_key<Q>(&self, key: &Q) -> boolwhere
Q: Hash + Equivalent<K> + ?Sized,
pub fn contains_key<Q>(&self, key: &Q) -> boolwhere
Q: Hash + Equivalent<K> + ?Sized,
Return true
if an equivalent to key
exists in the map.
Computes in O(1) time (average).
sourcepub fn get<Q>(&self, key: &Q) -> Option<&V>where
Q: Hash + Equivalent<K> + ?Sized,
pub fn get<Q>(&self, key: &Q) -> Option<&V>where
Q: Hash + Equivalent<K> + ?Sized,
Return a reference to the value stored for key
, if it is present,
else None
.
Computes in O(1) time (average).
sourcepub fn get_key_value<Q>(&self, key: &Q) -> Option<(&K, &V)>where
Q: Hash + Equivalent<K> + ?Sized,
pub fn get_key_value<Q>(&self, key: &Q) -> Option<(&K, &V)>where
Q: Hash + Equivalent<K> + ?Sized,
Return references to the key-value pair stored for key
,
if it is present, else None
.
Computes in O(1) time (average).
sourcepub fn get_full<Q>(&self, key: &Q) -> Option<(usize, &K, &V)>where
Q: Hash + Equivalent<K> + ?Sized,
pub fn get_full<Q>(&self, key: &Q) -> Option<(usize, &K, &V)>where
Q: Hash + Equivalent<K> + ?Sized,
Return item index, key and value
sourcepub fn get_index_of<Q>(&self, key: &Q) -> Option<usize>where
Q: Hash + Equivalent<K> + ?Sized,
pub fn get_index_of<Q>(&self, key: &Q) -> Option<usize>where
Q: Hash + Equivalent<K> + ?Sized,
Return item index, if it exists in the map
Computes in O(1) time (average).
Trait Implementations§
source§impl Deref for CREDITS_PROVING_KEYS
impl Deref for CREDITS_PROVING_KEYS
§type Target = IndexMap<String, Arc<CircuitProvingKey<<Console as Environment>::PairingCurve, MarlinHidingMode>>, RandomState>
type Target = IndexMap<String, Arc<CircuitProvingKey<<Console as Environment>::PairingCurve, MarlinHidingMode>>, RandomState>
The resulting type after dereferencing.
source§fn deref(
&self
) -> &IndexMap<String, Arc<CircuitProvingKey<<Console as Environment>::PairingCurve, MarlinHidingMode>>>
fn deref(
&self
) -> &IndexMap<String, Arc<CircuitProvingKey<<Console as Environment>::PairingCurve, MarlinHidingMode>>>
Dereferences the value.