Enum odbc_api::buffers::Indicator[][src]

pub enum Indicator {
    Null,
    NoTotal,
    Length(usize),
}

Indicates existence and length of a value.

Variants

Null

Field does not exist

NoTotal

Field exists, but its length had not be reported by the driver.

Length(usize)

Fields exists. Value indicates number of bytes required to store the value. In case of truncated data, this is the true length of the data, before truncation occurred.

Implementations

impl Indicator[src]

pub fn from_isize(indicator: isize) -> Self[src]

Creates an indicator from an isize indicator value returned by ODBC. Users of this crate have likely no need to call this method.

pub fn to_isize(self) -> isize[src]

Creates an indicator value as required by the ODBC C API.

Trait Implementations

impl Clone for Indicator[src]

impl Copy for Indicator[src]

impl Debug for Indicator[src]

impl Eq for Indicator[src]

impl PartialEq<Indicator> for Indicator[src]

impl StructuralEq for Indicator[src]

impl StructuralPartialEq for Indicator[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.