#[repr(transparent)]
pub struct SendValue { /* private fields */ }
Expand description

A version of Value for storing Send types, that implements Send itself.

See the module documentation for more details.

Implementations

Consumes SendValue and returns the corresponding GValue.

Methods from Deref<Target = Value>

Tries to get a value of type T.

Returns Ok if the type is correct.

Tries to get a value of an owned type T.

Returns true if the type of the value corresponds to T or is a sub-type of T.

Returns true if the type of the value corresponds to type_ or is a sub-type of type_.

Returns the type of the value.

Tries to transform the value into a value of the target type

Tries to transform the value into a value of the target type

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

The resulting type after dereferencing.

Dereferences the value.

Executes the destructor for this type. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Convert a value to a Value.

Returns the type identifer of self. Read more

Convert a value to a Value.

Returns the type identifer of self. 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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Returns a SendValue clone of self.

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.