pub struct Nullable<T> { /* private fields */ }
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

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

Indicates the length of variable sized types. May be zero for fixed sized types. Used to determine the size or existence of input parameters. Read more

Pointer to a value corresponding to the one described by cdata_type.

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

Indicates the length of variable sized types. May be zero for fixed sized types.

Pointer to a value corresponding to the one described by cdata_type.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

The SQL data as which the parameter is bound to ODBC.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.