Skip to main content

SignPolicy

Trait SignPolicy 

Source
pub trait SignPolicy {
    type Sign: DataType;
}
Expand description

The type SIGN returns on each dialect.

SQLite and MySQL answer an integer; PostgreSQL answers numeric or double precision depending on the argument, which sign coerces to double precision.

Required Associated Types§

Source

type Sign: DataType

The SQL type of SIGN(expr).

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§