pub trait SameShape<Other> { }Expand description
Two selections produce the same row: the same column names, in the same
order, decoding to the same types. A one-column selection decodes to a
bare value rather than a Row, and two of those match when the value
types do — there is no name to disagree about. Names as well as types, because a
UNION branch or a CTE body whose columns merely happen to be
type-compatible would otherwise splice in transposed.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".