Skip to main content

ValueType

Trait ValueType 

Source
pub trait ValueType {
    // Required method
    fn type_annotation() -> TypeAnnotation;
}
Expand description

Extracts the static TypeAnnotation for a Rust type. Used by IntoValue for Vec<T> to set the array’s items_type.

Required Methods§

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

Source§

impl ValueType for char

Source§

impl ValueType for f64

Source§

impl ValueType for i64

Source§

impl ValueType for String

Source§

impl<T: ValueType> ValueType for Vec<T>

Implementors§