pub trait InputDatumType<'a, E>: Sized {
// Required methods
fn nullable() -> bool;
fn try_from_result(
res: Result<Datum<'a>, E>,
) -> Result<Self, Result<Datum<'a>, E>>;
// Provided methods
fn all_nullable() -> bool { ... }
fn try_from_iter(
iter: &mut impl Iterator<Item = Result<Datum<'a>, E>>,
) -> Result<Self, Result<Option<Datum<'a>>, E>> { ... }
}Expand description
A bridge between native Rust types and SQL runtime types represented in Datums
Required Methods§
Provided Methods§
Sourcefn all_nullable() -> bool
fn all_nullable() -> bool
Whether ALL components of this input accept NULL values.
For single-element types this equals nullable(). For tuples, this is
the AND of all components’ nullable() values. Used by output_type to
detect implicit null propagation from non-nullable parameter positions.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.