pub struct SzBuffer { /* private fields */ }
Expand description

Use this buffer type to fetch zero terminated strings from the ODBC API. Either allocates a buffer for wide or narrow strings dependend on the features set.

Implementations

Creates a buffer which can hold at least capacity characters, excluding the terminating zero. Or phrased differently. It will allocate one additional character to hold the terminating zero, so the caller should not factor it into the size of capacity.

Create an owned utf-8 string from the internal buffer representation.

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 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.