Trait mica::IntoValue

source ·
pub trait IntoValue {
    type EngineUse: EngineUse;
}
Expand description

Trait implemented by all types that can be converted into Values and may require an engine to do so.

For performing the conversion, see Value::new and Engine::create_value.

Required Associated Types§

Specifies whether this implementation of IntoValue uses an engine or not.

Implementations on Foreign Types§

The unit type translates to Value::Nil.

NOTE: This is a lossy conversion, as an f64 cannot represent the entire range of an i64.

NOTE: This is a lossy conversion, as an f64 cannot represent the entire range of an isize.

NOTE: This is a lossy conversion, as an f64 cannot represent the entire range of a u64.

NOTE: This is a lossy conversion, as an f64 cannot represent the entire range of a usize.

Implementors§