Struct odbc_api::Nullable [−][src]
pub struct Nullable<T> { /* fields omitted */ }
Expand description
Wraps a type T together with an additional indicator. This way the type gains a Null representation, those memory layout is compatible with ODBC.
Implementations
Trait Implementations
impl<T> CData for Nullable<T> where
T: Pod,
[src]
impl<T> CData for Nullable<T> where
T: Pod,
[src]fn cdata_type(&self) -> CDataType
[src]
fn cdata_type(&self) -> CDataType
[src]The identifier of the C data type of the value buffer. When it is retrieving data from the
data source with fetch
, the driver converts the data to this type. When it sends data to
the source, the driver converts the data from this type. Read more
fn indicator_ptr(&self) -> *const isize
[src]
fn indicator_ptr(&self) -> *const isize
[src]Indicates the length of variable sized types. May be zero for fixed sized types.
fn value_ptr(&self) -> *const c_void
[src]
fn value_ptr(&self) -> *const c_void
[src]Pointer to a value corresponding to the one described by cdata_type
.
fn buffer_length(&self) -> isize
[src]
fn buffer_length(&self) -> isize
[src]Maximum length of the type in bytes (not characters). It is required to index values in
bound buffers, if more than one parameter is bound. Can be set to zero for types not bound
as parameter arrays, i.e. CStr
. Read more
impl<T> CDataMut for Nullable<T> where
T: Pod,
[src]
impl<T> CDataMut for Nullable<T> where
T: Pod,
[src]fn mut_indicator_ptr(&mut self) -> *mut isize
[src]
fn mut_indicator_ptr(&mut self) -> *mut isize
[src]Indicates the length of variable sized types. May be zero for fixed sized types.
fn mut_value_ptr(&mut self) -> *mut c_void
[src]
fn mut_value_ptr(&mut self) -> *mut c_void
[src]Pointer to a value corresponding to the one described by cdata_type
.
impl<T> HasDataType for Nullable<T> where
T: Pod + HasDataType,
[src]
impl<T> HasDataType for Nullable<T> where
T: Pod + HasDataType,
[src]impl<T> InputParameter for Nullable<T> where
T: Pod + HasDataType,
[src]
T: Pod + HasDataType,
impl<T> Output for Nullable<T> where
T: Pod + HasDataType,
[src]
T: Pod + HasDataType,
Auto Trait Implementations
impl<T> RefUnwindSafe for Nullable<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Nullable<T> where
T: Send,
T: Send,
impl<T> Sync for Nullable<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Nullable<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Nullable<T> where
T: UnwindSafe,
T: UnwindSafe,