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

pub struct Value(pub Value);

Value wraps the native OCaml value type

Methods

impl Value
[src]

[src]

Allocate a new value with the given size and tag

[src]

Allocate a new small value with the given size and tag

[src]

Create a new Value from an existing OCaml value

[src]

Get the underlying OCaml value

[src]

Get the tag for the underlying OCaml value

[src]

Create a new opaque pointer Value

[src]

Create an integer Value from i32

[src]

Create an integer Value from i64

[src]

Create a long Value from isize

[src]

Create a value from usize

[src]

Create a value from f64

[src]

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

[src]

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

[src]

Get index of underlying OCaml block value

[src]

Set index of underlying OCaml block value

[src]

Convert an OCaml integer to i32

[src]

Convert an OCaml integer to i64

[src]

Convert an OCaml integer to isize

[src]

Convert an OCaml integer to usize

[src]

Convert an OCaml float to f64

[src]

Get a pointer stored in an opaque value

[src]

Call a closure with a single argument

[src]

Call a closure with two arguments

[src]

Call a closure with three arguments

[src]

Call a closure with n arguments

[src]

Modify an OCaml value in place

Trait Implementations

impl From<Tuple> for Value
[src]

[src]

Performs the conversion.

impl From<Array> for Value
[src]

[src]

Performs the conversion.

impl From<List> for Value
[src]

[src]

Performs the conversion.

impl From<Str> for Value
[src]

[src]

Performs the conversion.

impl Debug for Value
[src]

[src]

Formats the value using the given formatter.

impl Clone for Value
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl ToValue for Value
[src]

[src]

impl FromValue for Value
[src]