pub trait BindingTuple: Sized {
// Required method
fn from_binding_vec(
expected: usize,
vec: Option<Vec<Binding>>,
) -> Result<Option<Self>, ProjectorError>;
}Expand description
A BindingTuple is any type that can accommodate a Mentat tuple query result of fixed length.
Currently Rust tuples of length 1 through 6 (i.e., (A) through (A, B, C, D, E, F)) are
supported as are vectors (i.e., Vec<>).
Required Methods§
fn from_binding_vec( expected: usize, vec: Option<Vec<Binding>>, ) -> Result<Option<Self>, ProjectorError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".