pub struct SBValue {
    pub raw: SBValueRef,
}
Expand description

The value of a variable, register or expression.

Fields

raw: SBValueRef

The underlying raw SBValueRef.

Implementations

Check whether or not this is a valid SBValue value.

Get an iterator over the child values of this value.

Find and watch a variable.

Find and watch the location pointed to by a variable.

Get an SBData wrapping what this SBValue points to.

This method will dereference the current SBValue, if its data type is a T* or T[], and extract item_count elements of type T from it, copying their contents into an SBData.

item_idx is the index of the first item to retrieve. For an array this is equivalent to array[item_idx], for a pointer to *(pointer + item_idx). In either case, the measurement unit for item_idx is the sizeof(T) rather than bytes.

item_count is how many items should be copied into the output. By default only one item is copied, but more can be asked for.

Returns Some(SBData) with the contents of the copied items, on success. None otherwise.

Get an SBData wrapping the contents of this SBValue.

This method will read the contents of this object in memory and copy them into an SBData for future use.

Returns Some(SBData) with the contents of this SBValue, on success. None otherwise.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Executes the destructor for this type. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.