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
sourceimpl SzBuffer
impl SzBuffer
sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
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.
pub fn mut_buf(&mut self) -> &mut [SqlChar]
Auto Trait Implementations
impl RefUnwindSafe for SzBuffer
impl Send for SzBuffer
impl Sync for SzBuffer
impl Unpin for SzBuffer
impl UnwindSafe for SzBuffer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more