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

Used to simulate an array of C-style strings.

Implementations

Creates a new C string vector from the provided rust strings.

C strings are continuous byte regions that end in \0 and do not contain \0 anywhere else.

Use as_c_array to get an unowned raw pointer to the array, to pass into FFI C code.

Returns the underlying array of C strings as a C array pointer. The array must not change after construction to ensure that this pointer remains valid.

Returns the number of elements in the vector.

Returns whether the vector is empty.

Trait Implementations

Formats the value using the given formatter. Read more

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.