Skip to main content

stored_type

Function stored_type 

Source
pub const fn stored_type<'a>(
    stored: Option<&'a Type>,
    domain: &'a Type,
) -> &'a Type
Expand description

The type ONE DATABASE stores a column at: the declared pin, or the domain type.

The uniform domain→row mapping, and the ONE place it is decided. A declaration that writes no type = "…" for a database stores the type the field itself carries — which is what a row’s own field takes, and what an INTERFACE’s row equation reads that field back at. Two readings of one default would be two things that can come to disagree about a column nobody renamed.