[][src]Struct ffi_convert::CStringArray

#[repr(C)]pub struct CStringArray {
    pub data: *const *const c_char,
    pub size: c_int,
}

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.