Trait ReflectValueType

Source
pub trait ReflectValueType: Sized {
    // Required methods
    fn value_type() -> ValueType;
    fn value_type_info() -> ValueTypeInfo;
}
Expand description

Trait for converting types into values.

Required Methods§

Source

fn value_type() -> ValueType

Convert into a value type.

Source

fn value_type_info() -> ValueTypeInfo

Access diagnostical information on the value type.

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 ReflectValueType for bool

Source§

impl ReflectValueType for char

Source§

impl ReflectValueType for f32

Convert a float into a value type.

Source§

impl ReflectValueType for f64

Convert a float into a value type.

Source§

impl ReflectValueType for i8

Convert a number into a value type.

Source§

impl ReflectValueType for i32

Convert a number into a value type.

Source§

impl ReflectValueType for i64

Convert a number into a value type.

Source§

impl ReflectValueType for i128

Convert a number into a value type.

Source§

impl ReflectValueType for isize

Convert a number into a value type.

Source§

impl ReflectValueType for u8

Convert a number into a value type.

Source§

impl ReflectValueType for u32

Convert a number into a value type.

Source§

impl ReflectValueType for u64

Convert a number into a value type.

Source§

impl ReflectValueType for u128

Convert a number into a value type.

Source§

impl ReflectValueType for usize

Convert a number into a value type.

Source§

impl ReflectValueType for Box<str>

Convert a string into a value type.

Source§

impl ReflectValueType for String

Source§

impl<'a> ReflectValueType for &'a str

Source§

impl<'a> ReflectValueType for &'a String

Source§

impl<'a> ReflectValueType for &'a [u8]

Source§

impl<'a> ReflectValueType for &'a mut String

Source§

impl<T> ReflectValueType for Option<T>

Source§

impl<T> ReflectValueType for HashMap<String, T>

Implementors§

Source§

impl ReflectValueType for Bytes

Source§

impl ReflectValueType for Unit

Source§

impl<'a> ReflectValueType for &'a Bytes

Source§

impl<'a> ReflectValueType for &'a mut Bytes

Source§

impl<'a, T> ReflectValueType for &'a Array<T>

Source§

impl<'a, T> ReflectValueType for &'a Object<T>

Source§

impl<'a, T> ReflectValueType for &'a mut Array<T>

Source§

impl<'a, T> ReflectValueType for &'a mut Object<T>

Source§

impl<T> ReflectValueType for Array<T>

Source§

impl<T> ReflectValueType for Object<T>