Skip to main content

AssignsTo

Trait AssignsTo 

Source
pub trait AssignsTo<Column: SqlType>: SqlType { }
Expand description

What an expression can be assigned to. The value’s type is Self and the column’s is the parameter, which is the direction assignment runs in: a Text value goes into a Nullable<Text> column and a narrower number into a wider one, never the reverse. (Comparable is the symmetric, nullability-blind relation, and a comparison is symmetric.)

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§