[][src]Struct odbc_api::parameter::VarCharParam

pub struct VarCharParam<'a> { /* fields omitted */ }

Binds a byte array as a VarChar input parameter.

While a byte array can provide us with a pointer to the start of the array and the length of the array itself, it can not provide us with a pointer to the length of the buffer. So to bind strings which are not zero terminated we need to store the length in a separate value.

Implementations

impl<'a> VarCharParam<'a>[src]

pub fn new(value: &'a [u8]) -> Self[src]

Trait Implementations

impl<'_> Parameter for VarCharParam<'_>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for VarCharParam<'a>

impl<'a> Send for VarCharParam<'a>

impl<'a> Sync for VarCharParam<'a>

impl<'a> Unpin for VarCharParam<'a>

impl<'a> UnwindSafe for VarCharParam<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.