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§
fn type_annotation() -> TypeAnnotation
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.