Class: LinkageMap
The version of each package a package depends on, keyed by the dependency's runtime ID.
Extends
UniffiAbstractObject
Implements
Properties
[destructorGuardSymbol]
readonly [destructorGuardSymbol]: UniffiGcObject;
[pointerLiteralSymbol]
readonly [pointerLiteralSymbol]: bigint;
[uniffiTypeNameSymbol]
readonly [uniffiTypeNameSymbol]: "LinkageMap" = "LinkageMap";
Methods
containsKey()
containsKey(key): boolean;
Whether a value is stored under key.
Parameters
key
Returns
boolean
Implementation of
entries()
entries(): LinkageMapEntry[];
Every entry, in key order.
Returns
Implementation of
get()
get(key): UpgradeInfo | undefined;
The value stored under key, or None if there is none.
Parameters
key
Returns
UpgradeInfo | undefined
Implementation of
isEmpty()
isEmpty(): boolean;
Whether the map holds no entries.
Returns
boolean
Implementation of
keys()
keys(): ObjectIdLike[];
Every key, in key order.
Returns
Implementation of
len()
len(): bigint;
The number of entries.
Returns
bigint
Implementation of
uniffiDestroy()
uniffiDestroy(): void;
Explicitly tell Rust to destroy the native peer that backs this object.
Once this method has been called, any following method calls will throw an error.
Can be called more than once.
Returns
void
Overrides
UniffiAbstractObject.uniffiDestroy
uniffiUse()
uniffiUse<T>(block): T;
A convenience method to use this object, then destroy it after its use.
Type Parameters
T
T
Parameters
block
(obj) => T
Returns
T
Inherited from
UniffiAbstractObject.uniffiUse
values()
values(): UpgradeInfo[];
Every value, ordered by the key it is stored under.
Returns
Implementation of
fromEntries()
static fromEntries(entries): LinkageMapLike;
Collect entries into a map. A key repeated across entries keeps the value of the last one.
Parameters
entries
Returns
instanceOf()
static instanceOf(obj_): obj_ is LinkageMap;
Parameters
obj_
any
Returns
obj_ is LinkageMap