Skip to content

Commit

Permalink
[framework][object] Introduce ability to recreate objects after deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-aptos committed Dec 12, 2024
1 parent b9bd71c commit 7092a12
Show file tree
Hide file tree
Showing 5 changed files with 472 additions and 52 deletions.
10 changes: 5 additions & 5 deletions aptos-move/framework/aptos-framework/doc/event.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ A handle for an event such that:


<pre><code>#[deprecated]
<b>struct</b> <a href="event.md#0x1_event_EventHandle">EventHandle</a>&lt;T: drop, store&gt; <b>has</b> store
<b>struct</b> <a href="event.md#0x1_event_EventHandle">EventHandle</a>&lt;T: drop, store&gt; <b>has</b> drop, store
</code></pre>


Expand Down Expand Up @@ -264,7 +264,7 @@ Destroy a unique handle.


<pre><code>#[deprecated]
<b>public</b> <b>fun</b> <a href="event.md#0x1_event_destroy_handle">destroy_handle</a>&lt;T: drop, store&gt;(handle: <a href="event.md#0x1_event_EventHandle">event::EventHandle</a>&lt;T&gt;)
<b>public</b> <b>fun</b> <a href="event.md#0x1_event_destroy_handle">destroy_handle</a>&lt;T: drop, store&gt;(self: <a href="event.md#0x1_event_EventHandle">event::EventHandle</a>&lt;T&gt;)
</code></pre>


Expand All @@ -273,8 +273,8 @@ Destroy a unique handle.
<summary>Implementation</summary>


<pre><code><b>public</b> <b>fun</b> <a href="event.md#0x1_event_destroy_handle">destroy_handle</a>&lt;T: drop + store&gt;(handle: <a href="event.md#0x1_event_EventHandle">EventHandle</a>&lt;T&gt;) {
<a href="event.md#0x1_event_EventHandle">EventHandle</a>&lt;T&gt; { counter: _, <a href="guid.md#0x1_guid">guid</a>: _ } = handle;
<pre><code><b>public</b> <b>fun</b> <a href="event.md#0x1_event_destroy_handle">destroy_handle</a>&lt;T: drop + store&gt;(self: <a href="event.md#0x1_event_EventHandle">EventHandle</a>&lt;T&gt;) {
<a href="event.md#0x1_event_EventHandle">EventHandle</a>&lt;T&gt; { counter: _, <a href="guid.md#0x1_guid">guid</a>: _ } = self;
}
</code></pre>

Expand Down Expand Up @@ -466,7 +466,7 @@ Native function use opaque.


<pre><code>#[deprecated]
<b>public</b> <b>fun</b> <a href="event.md#0x1_event_destroy_handle">destroy_handle</a>&lt;T: drop, store&gt;(handle: <a href="event.md#0x1_event_EventHandle">event::EventHandle</a>&lt;T&gt;)
<b>public</b> <b>fun</b> <a href="event.md#0x1_event_destroy_handle">destroy_handle</a>&lt;T: drop, store&gt;(self: <a href="event.md#0x1_event_EventHandle">event::EventHandle</a>&lt;T&gt;)
</code></pre>


Expand Down
Loading

0 comments on commit 7092a12

Please sign in to comment.