pub struct COptions { /* private fields */ }Expand description
A pinned, owned array of cpdb_option_t with backing CString storage.
The strings cannot be reallocated after construction, so raw pointers
embedded in the cpdb_option_t entries stay valid for the lifetime of
the COptions. Allocation in to_c_options therefore cannot invalidate
any pointer captured here.
Implementations§
Source§impl COptions
impl COptions
Sourcepub fn as_mut_ptr(&mut self) -> *mut cpdb_option_t
pub fn as_mut_ptr(&mut self) -> *mut cpdb_option_t
Returns a raw mutable pointer to the underlying option array,
suitable for passing to cpdb-libs functions that expect a
cpdb_option_t * plus a length.
Auto Trait Implementations§
impl !Send for COptions
impl !Sync for COptions
impl Freeze for COptions
impl RefUnwindSafe for COptions
impl Unpin for COptions
impl UnsafeUnpin for COptions
impl UnwindSafe for COptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more