- Move path
- 0xed6c…9f32::object_box
- Functions
- 99 public, 0 entry
- Structs
- 1
- Friend modules
- None
object_box
public fun add<T0: store + key>(&mut ObjectBox,T0)
public fun borrow<T0: store + key>(&ObjectBox):
&T0 public fun borrow_mut<T0: store + key>(&mut ObjectBox):
&mut T0 public fun has_object<T0: store + key>(&ObjectBox):
bool public fun new<T0: store + key>(T0):
ObjectBox public fun remove<T0: store + key>(&mut ObjectBox):
T0
key is an object with an id. store can be kept inside other objects. copy can be duplicated. drop can be thrown away.
Constants are shown the way the code loads them. Bytecode does not keep their names.
| Index | Value | Type | Use | Used in |
|---|
| 0 | 0 | u64 | Abort code | add |
| 1 | 1 | u64 | Abort code | destroy |