rune::runtime

Trait FromConstValue

Source
pub trait FromConstValue: Sized {
    // Required method
    fn from_const_value(value: ConstValue) -> Result<Self, RuntimeError>;
}
Expand description

Convert a value from a constant value.

Required Methods§

Source

fn from_const_value(value: ConstValue) -> Result<Self, RuntimeError>

Convert from a constant value.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FromConstValue for bool

Source§

impl FromConstValue for char

Source§

impl FromConstValue for i8

Source§

impl FromConstValue for i16

Source§

impl FromConstValue for i32

Source§

impl FromConstValue for i64

Source§

impl FromConstValue for i128

Source§

impl FromConstValue for isize

Source§

impl FromConstValue for u8

Source§

impl FromConstValue for u16

Source§

impl FromConstValue for u32

Source§

impl FromConstValue for u64

Source§

impl FromConstValue for u128

Source§

impl FromConstValue for usize

Source§

impl<A> FromConstValue for (A,)
where A: FromConstValue,

Source§

impl<A, B> FromConstValue for (A, B)

Source§

impl<A, B, C> FromConstValue for (A, B, C)

Source§

impl<A, B, C, D> FromConstValue for (A, B, C, D)

Source§

impl<A, B, C, D, E> FromConstValue for (A, B, C, D, E)

Source§

impl<A, B, C, D, E, F> FromConstValue for (A, B, C, D, E, F)

Source§

impl<A, B, C, D, E, F, G> FromConstValue for (A, B, C, D, E, F, G)

Source§

impl<A, B, C, D, E, F, G, H> FromConstValue for (A, B, C, D, E, F, G, H)

Source§

impl<A, B, C, D, E, F, G, H, I> FromConstValue for (A, B, C, D, E, F, G, H, I)

Source§

impl<A, B, C, D, E, F, G, H, I, J> FromConstValue for (A, B, C, D, E, F, G, H, I, J)

Source§

impl<A, B, C, D, E, F, G, H, I, J, K> FromConstValue for (A, B, C, D, E, F, G, H, I, J, K)

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L> FromConstValue for (A, B, C, D, E, F, G, H, I, J, K, L)

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M> FromConstValue for (A, B, C, D, E, F, G, H, I, J, K, L, M)

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> FromConstValue for (A, B, C, D, E, F, G, H, I, J, K, L, M, N)

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> FromConstValue for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> FromConstValue for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)

Implementors§