Struct weld::WeldValue [] [src]

pub struct WeldValue { /* fields omitted */ }

A wrapper for data passed into and out of Weld.

Methods

impl WeldValue
[src]

Creates a new WeldValue with a particular data pointer.

This function is used to wrap data that will be passed into Weld. Data passed into Weld should be in a standard format that Weld understands: this is usually some kind of packed C structure with a particular field layout.

Returns the data pointer of this WeldValue.

Returns the run ID of this value if it has one.

A WeldValue will only have a run ID if it was returned by a Weld program. That is, a WeldValue that is created using WeldValue::new_from_data will always have a run_id of None.

Returns the memory usage of this value.

This equivalently returns the amount of memory allocated by a Weld run. If the value was not returned by Weld, returns None.

Trait Implementations

impl Debug for WeldValue
[src]

Formats the value using the given formatter. Read more

impl Clone for WeldValue
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Drop for WeldValue
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl !Send for WeldValue

impl !Sync for WeldValue