Struct ocaml::value::Value[][src]

pub struct Value(pub Value);

Value wraps the native OCaml value type

Methods

impl Value
[src]

Allocate a new value with the given size and tag

Allocate a new small value with the given size and tag

Allocate a new value with a custom finalizer

Create a new Value from an existing OCaml value

See caml_register_global_root

Set caml_remove_global_root

Get the underlying OCaml value

Get the tag for the underlying OCaml value

Convert a boolean to OCaml value

OCaml Some value

OCaml None value

Create a variant value

Create a new opaque pointer Value

Create an integer Value from i32

Create an integer Value from i64

Create an OCaml int64 from i64

Create an OCaml int32 from i32

Create an OCaml native int from isize

Create a long Value from isize

Create a value from usize

Create a value from f64

Check if a Value is an integer or block, returning true if the underlying value is a block

Check if a Value is an integer or block, returning true if the underlying value is an integer

Get index of underlying OCaml block value

Set index of underlying OCaml block value

Convert an OCaml integer to i32

Convert an OCaml integer to i64

Convert an OCaml integer to isize

Convert an OCaml integer to usize

Convert an OCaml float to f64

Convert an OCaml int32 to i32

Convert an OCaml int64 to i64

Convert an OCaml integer to isize

Get pointer to data stored in an OCaml custom value

Get mutable pointer to data stored in an OCaml custom value

Get pointer to data stored in an opaque value

Get mutable pointer to data stored in an opaque value

Call a closure with a single argument

Call a closure with two arguments

Call a closure with three arguments

Call a closure with n arguments

Call a closure with a single argument, returning an exception value

Call a closure with two arguments, returning an exception value

Call a closure with three arguments, returning an exception value

Call a closure with n arguments, returning an exception value

Modify an OCaml value in place

Determines if the current value is an exception

Get object method

Trait Implementations

impl From<Tuple> for Value
[src]

Performs the conversion.

impl From<Array> for Value
[src]

Performs the conversion.

impl From<Value> for Array
[src]

Performs the conversion.

impl From<List> for Value
[src]

Performs the conversion.

impl From<Value> for List
[src]

Performs the conversion.

impl From<Str> for Value
[src]

Performs the conversion.

impl From<Value> for Str
[src]

Performs the conversion.

impl<T: BigarrayKind> From<Array1<T>> for Value
[src]

Performs the conversion.

impl<T: BigarrayKind> From<Value> for Array1<T>
[src]

Performs the conversion.

impl Debug for Value
[src]

Formats the value using the given formatter. Read more

impl Clone for Value
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<Value> for Value
[src]

Performs the conversion.

impl ToValue for Value
[src]

impl FromValue for Value
[src]

Auto Trait Implementations

impl Send for Value

impl Sync for Value