Struct odbc_api::parameter::Out[][src]

pub struct Out<'a, T>(pub &'a mut T);
Expand description

Wraps a mutable reference. Use this wrapper in order to indicate that a mutable reference should be bound as an output parameter only, rather than an input / output parameter.

Example

use odbc_api::{Environment, Out, Nullable};

let env = Environment::new()?;

let mut conn = env.connect("YourDatabase", "SA", "<YourStrong@Passw0rd>")?;

let mut ret = Nullable::<i32>::null();
let mut param = Nullable::<i32>::new(7);

conn.execute(
    "{? = call TestParam(?)}",
    (Out(&mut ret), &mut param))?;

Tuple Fields

0: &'a mut T

Trait Implementations

Mutable references wrapped in Out are bound as output parameters.

Bind the parameter in question to a specific parameter_number. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.