Skip to main content

ValueType

Trait ValueType 

Source
pub trait ValueType: Sealed + Copy {
    const TYPE: PropertyType;
}
Expand description

A scalar value type usable as a typed-handle marker.

Implemented only by Text, Int, and Bool; sealed against downstream implementations.

§Performance

perf: unspecified — a compile-time marker trait with no runtime cost.

Required Associated Constants§

Source

const TYPE: PropertyType

The catalog property type this marker corresponds to.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl ValueType for Bool

Source§

const TYPE: PropertyType = PropertyType::Boolean

Source§

impl ValueType for Int

Source§

const TYPE: PropertyType = PropertyType::Integer

Source§

impl ValueType for Text

Source§

const TYPE: PropertyType = PropertyType::Text