Struct rustler::env::SavedTerm
[−]
[src]
pub struct SavedTerm { /* fields omitted */ }
A term that was created in an OwnedEnv
and saved for later use.
These are created by calling OwnedEnv::save()
. See that method's documentation for an
example.
Methods
impl SavedTerm
[src]
fn load<'a>(&self, env: NifEnv<'a>) -> NifTerm<'a>
Load this saved term back into its environment.
Panics
env
must be the NifEnv
of a .run()
or .send()
call on the
OwnedEnv
where this term was saved, and the OwnedEnv
must not have
been cleared or dropped since then. Otherwise this method will panic.
Trait Implementations
impl Clone for SavedTerm
[src]
fn clone(&self) -> SavedTerm
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more