Enum voodoo::util::CharStrs [] [src]

pub enum CharStrs<'cs> {
    Ptr {
        ptr: *const *const c_char,
        len: usize,
    },
    RefPtr {
        ptrs: &'cs [*const c_char],
    },
    OwnedPtr {
        ptrs: Vec<*const c_char>,
    },
    OwnedOwned {
        strings: Vec<CString>,
        ptrs: Vec<*const c_char>,
    },
}

Either a borrowed list of borrowed char pointers, an owned list of borrowed char pointers, or owned lists of both CStrings and pointers to their internal arrays.

Variants

Fields of Ptr

Fields of RefPtr

Fields of OwnedPtr

Fields of OwnedOwned

Methods

impl<'cs> CharStrs<'cs>
[src]

[src]

[src]

Important traits for &'a mut [u8]
[src]

Trait Implementations

impl<'cs> Debug for CharStrs<'cs>
[src]

[src]

Formats the value using the given formatter. Read more

impl<'cs> Clone for CharStrs<'cs>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'cs, 'p> From<&'p [*const c_char]> for CharStrs<'cs> where
    'p: 'cs, 
[src]

[src]

Performs the conversion.

impl<'cs, 'p, 'q> From<&'p [&'q [u8]]> for CharStrs<'cs> where
    'q: 'p,
    'p: 'cs, 
[src]

[src]

Performs the conversion.

impl<'cs, 'p, 'q> From<&'p [&'q CStr]> for CharStrs<'cs> where
    'q: 'p,
    'p: 'cs, 
[src]

[src]

Performs the conversion.

impl<'cs, 'p, 'q> From<&'p [&'q str]> for CharStrs<'cs> where
    'q: 'p,
    'p: 'cs, 
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl<'cs> !Send for CharStrs<'cs>

impl<'cs> !Sync for CharStrs<'cs>