pub struct UnorderedMap<K, V>(/* private fields */);Implementations§
Trait Implementations§
Source§impl<O: Ops, K: Codec<O>, V: Codec<O>> Codec<O> for UnorderedMap<K, V>
impl<O: Ops, K: Codec<O>, V: Codec<O>> Codec<O> for UnorderedMap<K, V>
type Incomplete = IncompleteUnorderedMap<K, V>
Source§fn codec_read(ops: &O) -> ReadResult<Self>
fn codec_read(ops: &O) -> ReadResult<Self>
Convert from a data format to a data structure.
Source§fn codec_write(&self) -> WriteResult<O>
fn codec_write(&self) -> WriteResult<O>
Convert from a data structure to a data format.
Source§impl<K, V> Default for UnorderedMap<K, V>
impl<K, V> Default for UnorderedMap<K, V>
Source§impl<K, V> From<BTreeMap<K, V>> for UnorderedMap<K, V>
impl<K, V> From<BTreeMap<K, V>> for UnorderedMap<K, V>
Source§impl<K, V> From<HashMap<K, V>> for UnorderedMap<K, V>
impl<K, V> From<HashMap<K, V>> for UnorderedMap<K, V>
Source§impl<K: Hash + Eq, V> From<UnorderedMap<K, V>> for HashMap<K, V>
impl<K: Hash + Eq, V> From<UnorderedMap<K, V>> for HashMap<K, V>
Source§fn from(m: UnorderedMap<K, V>) -> Self
fn from(m: UnorderedMap<K, V>) -> Self
Converts to this type from the input type.
Source§impl<K: Ord, V> From<UnorderedMap<K, V>> for BTreeMap<K, V>
impl<K: Ord, V> From<UnorderedMap<K, V>> for BTreeMap<K, V>
Source§fn from(m: UnorderedMap<K, V>) -> Self
fn from(m: UnorderedMap<K, V>) -> Self
Converts to this type from the input type.
Source§impl<O: Ops, K: Codec<O> + Clone, V: Codec<O> + Clone> MapCodec<O> for UnorderedMap<K, V>
impl<O: Ops, K: Codec<O> + Clone, V: Codec<O> + Clone> MapCodec<O> for UnorderedMap<K, V>
fn codec_read_map_item( incomplete: &mut <Self as Codec<O>>::Incomplete, k: &O, v: &O, )
fn codec_write_to_map(&self, map: &mut Vec<(O, O)>) -> WriteResult<()>
Source§fn get_and_reset_result(
incomplete: &mut <Self as Codec<O>>::Incomplete,
) -> ReadResult<()>
fn get_and_reset_result( incomplete: &mut <Self as Codec<O>>::Incomplete, ) -> ReadResult<()>
For normal structs, this sets
incomplete.__result = Ok(()) and returns
the previous value of __result.Auto Trait Implementations§
impl<K, V> Forget for UnorderedMap<K, V>
impl<K, V> Freeze for UnorderedMap<K, V>
impl<K, V> Move for UnorderedMap<K, V>
impl<K, V> RefUnwindSafe for UnorderedMap<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for UnorderedMap<K, V>
impl<K, V> Sync for UnorderedMap<K, V>
impl<K, V> Unpin for UnorderedMap<K, V>
impl<K, V> UnsafeUnpin for UnorderedMap<K, V>
impl<K, V> UnwindSafe for UnorderedMap<K, V>
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