diff --git a/src/utility.rs b/src/utility.rs index e6ad3d5..8dcca3e 100644 --- a/src/utility.rs +++ b/src/utility.rs @@ -1,3 +1,7 @@ pub fn leak < 'l , Type > ( inner : Type ) -> & 'l Type { Box :: leak ( Box :: new (inner) ) } + +pub fn leak_mut < 'l , Type > ( inner : Type ) -> & 'l mut Type { + Box :: leak ( Box :: new (inner) ) +}