[−][src]Struct ffi_convert::CStringArray
A utility type to represent arrays of string
Example
use ffi_convert::{CReprOf, CStringArray}; let pizza_names = vec!["Diavola".to_string(), "Margarita".to_string(), "Regina".to_string()]; let c_pizza_names = CStringArray::c_repr_of(pizza_names).expect("could not convert !");
Fields
data: *const *const c_char
Pointer to the first element of the array
size: c_int
Number of elements in the array
Trait Implementations
impl AsRust<Vec<String>> for CStringArray
[src]
impl CDrop for CStringArray
[src]
impl CReprOf<Vec<String>> for CStringArray
[src]
impl Debug for CStringArray
[src]
impl Sync for CStringArray
[src]
Auto Trait Implementations
impl RefUnwindSafe for CStringArray
impl !Send for CStringArray
impl Unpin for CStringArray
impl UnwindSafe for CStringArray
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,