Struct ocaml_interop::BoxRoot[][src]

pub struct BoxRoot<T: 'static> { /* fields omitted */ }
Expand description

BoxRoot<T> is a container for a rooted OCaml<T> value.

Implementations

Creates a new root from an OCaml<T> value.

Gets the value stored in this root as an OCaml<T>.

Roots the OCaml value val, returning an OCamlRef<T>.

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

Executes the destructor for this type. Read more

Convert to OCaml value.

Convert to OCaml value. Return an already rooted value as BoxRoot<T>.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.