[−][src]Struct odbc_api::parameter::Out
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
impl<'a, T> Parameter for Out<'a, T> where
T: OutputParameter, [src]
T: OutputParameter,
Mutable references wrapped in Out are bound as output parameters.
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for Out<'a, T> where
T: RefUnwindSafe, [src]
T: RefUnwindSafe,
impl<'a, T> Send for Out<'a, T> where
T: Send, [src]
T: Send,
impl<'a, T> Sync for Out<'a, T> where
T: Sync, [src]
T: Sync,
impl<'a, T> Unpin for Out<'a, T>[src]
impl<'a, T> !UnwindSafe for Out<'a, T>[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,