Search by name, SuiNS, address, digest, object ID, coin type or checkpoint.

API

vec_map

Module0x0000…0002
Move path
0x0000…0002::vec_map
Functions
2020 public, 0 entry
Structs
2
Friend modules
None
vec_map

Declarations

Rebuilt from the module interface. No verified source is published, and function bodies are only available as bytecode.

module vec_map;
struct Entry<T0: copy, T1> has copy, drop, store {
key: T0,
value: T1,
}
struct VecMap<T0: copy, T1> has copy, drop, store {
contents: vector<Entry<T0, T1>>,
}
public fun contains<T0: copy, T1>(&VecMap<T0, T1>,&T0): bool
public fun destroy_empty<T0: copy, T1>(VecMap<T0, T1>)
public fun empty<T0: copy, T1>(): VecMap<T0, T1>
public fun from_keys_values<T0: copy, T1>(vector<T0>, vector<T1>): VecMap<T0, T1>
public fun get<T0: copy, T1>(&VecMap<T0, T1>,&T0): &T1
public fun get_entry_by_idx<T0: copy, T1>(&VecMap<T0, T1>,u64): (&T0, &T1)
public fun get_entry_by_idx_mut<T0: copy, T1>(&mut VecMap<T0, T1>,u64): (&T0, &mut T1)
public fun get_idx<T0: copy, T1>(&VecMap<T0, T1>,&T0): u64
public fun get_idx_opt<T0: copy, T1>(&VecMap<T0, T1>,&T0): Option<u64>
public fun get_mut<T0: copy, T1>(&mut VecMap<T0, T1>,&T0): &mut T1
public fun insert<T0: copy, T1>(&mut VecMap<T0, T1>,T0,T1)
public fun into_keys_values<T0: copy, T1>(VecMap<T0, T1>): (vector<T0>, vector<T1>)
public fun is_empty<T0: copy, T1>(&VecMap<T0, T1>): bool
public fun keys<T0: copy, T1>(&VecMap<T0, T1>): vector<T0>
public fun length<T0: copy, T1>(&VecMap<T0, T1>): u64
public fun pop<T0: copy, T1>(&mut VecMap<T0, T1>): (T0, T1)
public fun remove<T0: copy, T1>(&mut VecMap<T0, T1>,&T0): (T0, T1)
public fun remove_entry_by_idx<T0: copy, T1>(&mut VecMap<T0, T1>,u64): (T0, T1)
public fun size<T0: copy, T1>(&VecMap<T0, T1>): u64
public fun try_get<T0: copy, T1: copy>(&VecMap<T0, T1>,&T0): Option<T1>