pub struct BoxedValue(pub Value);
Expand description

A Value containing another Value.

Tuple Fields

0: Value

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

The resulting type after dereferencing.

Dereferences the value.

Value type checker.

Get the contained value from a Value. Read more

Returns the type identifier of Self.

Convert a value to a Value.

Returns the type identifer of self. Read more

Convert an Option to a Value.

Type to get the Type from. 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.

Ensures that the type has been registered with the type system.

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.