pub unsafe trait ParameterRef {
    unsafe fn bind_to(
        &mut self,
        parameter_number: u16,
        stmt: &mut impl Statement
    ) -> Result<(), Error>; }
Expand description

Implementers of this trait can be used as individual parameters of in a crate::ParameterRefCollection. They can be bound as either input parameters, output parameters or both.

Safety

Parameters bound to the statement must remain valid for the lifetime of the instance.

Required methods

Bind the parameter in question to a specific parameter_number.

Safety

Since the parameter is now bound to stmt callers must take care that it is ensured that the parameter remains valid while it is used. If the parameter is bound as an output parameter it must also be ensured that it is exclusively referenced by statement.

Implementations on Foreign Types

Bind immutable references as input parameters.

Bind mutable references as input parameters.

Bind immutable references as input parameters.

Implementors

Bind mutable references as input/output parameter.

Mutable references wrapped in Out are bound as output parameters.