/// Releases a given `OwnedBinary` to the VM.
/// After this point the binary will be immutable.
Releases a given `OwnedBinary` to the VM.
After this point the binary will be immutable.
Releases a given ` OwnedBinary ` to the VM . After this point the binary will be immutable .
pub fn from_owned(mut bin: OwnedBinary, env: Env<'a>) -> Self {
        bin.release = false;
        let term = unsafe {
            Term::new(
                env,
                rustler_sys::enif_make_binary(env.as_c_arg(), &mut bin.inner),
            )
        };
        Binary {
            inner: bin.inner,
            term,
        }
    }
pub fn from_owned ( mut bin : OwnedBinary , env : Env < ' a > ) -> Self { bin . release = false ; let term = unsafe { Term :: new ( env , rustler_sys :: enif_make_binary ( env . as_c_arg ( ) , & mut bin . inner ) , ) } ; Binary { inner : bin . inner , term , } }
Releases a given `OwnedBinary` to the VM.
Releases a given ` OwnedBinary ` to the VM .
bin
OwnedBinary
env
Env<'a>