Struct ffi_pool::CStringPool [] [src]

pub struct CStringPool { /* fields omitted */ }

A thread-safe pool of CStrings which can be readily reused with strs for ease of FFI interactions.

Methods

impl CStringPool
[src]

[src]

Create a new pool with a given default capacity for newly allocated CStrings.

[src]

Create a new pool with an additional maximum capacity. Allocating new CStrings when the pool is at capacity will block until a new CString is available.

[src]

Allocate a new CString from the pool. This will check the supplied str for interior nul bytes.

[src]

Allocate a new CString from the pool, using a CStr as a source.

Trait Implementations

impl Debug for CStringPool
[src]

[src]

Formats the value using the given formatter.

impl Clone for CStringPool
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more