You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are casting the object into a raw form that removes the lifetime. Then we call an unsafe function to create a new object from that raw pointer
Why this is safe
We are not actually changing the &mut reference to Arena. Instead we are releasing it then reborrowing it immutabley. We make sure to shadow the name so the old binding is no longer available.
The text was updated successfully, but these errors were encountered:
The rebind macro has this definition:
rune/src/arena/mod.rs
Lines 96 to 102 in 7136b74
We are casting the object into a raw form that removes the lifetime. Then we call an unsafe function to create a new object from that raw pointer
Why this is safe
We are not actually changing the
&mut
reference to Arena. Instead we are releasing it then reborrowing it immutabley. We make sure to shadow the name so the old binding is no longer available.The text was updated successfully, but these errors were encountered: