Module util

Source

Functionsยง

arc_unwrap ๐Ÿ”’ โš 
Can be used instead of Arc::try_unwrap(arc).unwrap() when it is guaranteed to succeed.
is_arc_unique ๐Ÿ”’
Guarantees uniqueness only if Weak pointers are never created from this Arc or clones.
try_arc_unwrap ๐Ÿ”’ โš 
Can be used instead of Arc::try_unwrap only if Weak pointers are never created from this Arc or clones.