Struct odbc_api::parameter::Out [−][src]
pub struct Out<'a, T>(pub &'a mut T);
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 = unsafe { 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))?;
Trait Implementations
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for Out<'a, T> where
T: RefUnwindSafe,
impl<'a, T> RefUnwindSafe for Out<'a, T> where
T: RefUnwindSafe, impl<'a, T> !UnwindSafe for Out<'a, T>
impl<'a, T> !UnwindSafe for Out<'a, T>