Expand description
Trait implemented by all types that can be converted into Value
s and may require an engine
to do so.
For performing the conversion, see Value::new
and
Engine::create_value
.
Required Associated Types
Implementations on Foreign Types
sourceimpl IntoValue for ()
impl IntoValue for ()
The unit type translates to Value::Nil
.
type EngineUse = DoesNotUseEngine
sourceimpl IntoValue for bool
impl IntoValue for bool
type EngineUse = DoesNotUseEngine
sourceimpl IntoValue for i8
impl IntoValue for i8
type EngineUse = DoesNotUseEngine
sourceimpl IntoValue for i16
impl IntoValue for i16
type EngineUse = DoesNotUseEngine
sourceimpl IntoValue for i32
impl IntoValue for i32
type EngineUse = DoesNotUseEngine
sourceimpl IntoValue for i64
impl IntoValue for i64
NOTE: This is a lossy conversion, as an f64
cannot represent the entire range of an i64
.
type EngineUse = DoesNotUseEngine
sourceimpl IntoValue for isize
impl IntoValue for isize
NOTE: This is a lossy conversion, as an f64
cannot represent the entire range of an isize
.
type EngineUse = DoesNotUseEngine
sourceimpl IntoValue for u8
impl IntoValue for u8
type EngineUse = DoesNotUseEngine
sourceimpl IntoValue for u16
impl IntoValue for u16
type EngineUse = DoesNotUseEngine
sourceimpl IntoValue for u32
impl IntoValue for u32
type EngineUse = DoesNotUseEngine
sourceimpl IntoValue for u64
impl IntoValue for u64
NOTE: This is a lossy conversion, as an f64
cannot represent the entire range of a u64
.
type EngineUse = DoesNotUseEngine
sourceimpl IntoValue for usize
impl IntoValue for usize
NOTE: This is a lossy conversion, as an f64
cannot represent the entire range of a usize
.