option
Module0x0000…0001
- Move path
- 0x0000…0001::option
- Functions
- 1717 public, 0 entry
- Structs
- 1
- Friend modules
- None
option
Functions17
- public fun borrow<T0>(&Option<T0>): &T0
- public fun borrow_mut<T0>(&mut Option<T0>): &mut T0
- public fun borrow_with_default<T0>(&Option<T0>, &T0): &T0
- public fun contains<T0>(&Option<T0>, &T0): bool
- public fun destroy_none<T0>(Option<T0>)
- public fun destroy_some<T0>(Option<T0>): T0
- public fun destroy_with_default<T0: drop>(Option<T0>, T0): T0
- public fun extract<T0>(&mut Option<T0>): T0
- public fun fill<T0>(&mut Option<T0>,T0)
- public fun get_with_default<T0: copy + drop>(&Option<T0>, T0): T0
- public fun is_none<T0>(&Option<T0>): bool
- public fun is_some<T0>(&Option<T0>): bool
- public fun none<T0>(): Option<T0>
- public fun some<T0>(T0): Option<T0>
- public fun swap<T0>(&mut Option<T0>,T0): T0
- public fun swap_or_fill<T0>(&mut Option<T0>,T0): Option<T0>
- public fun to_vec<T0>(Option<T0>): vector<T0>
Structs1
key is an object with an id. store can be kept inside other objects. copy can be duplicated. drop can be thrown away.
- Option<T0>copydropstore
vec vector<T0>
Constants2
Constants are shown the way the code loads them. Bytecode does not keep their names.
| Slot | Value | Type | Use | Used in |
|---|---|---|---|---|
| 0 | 262144 | u64 | Abort code | filldestroy_none |
| 1 | 262145 | u64 | Abort code | borrowextractborrow_mutswapand 1 more |