pub trait RandomPolicy {
type Random: DataType;
}Expand description
Dialect-specific return type for RANDOM().
SQLite RANDOM() returns an integer in [-2^63, 2^63).
PostgreSQL RANDOM() returns a float in [0, 1).
Required Associated Types§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".