Trait swiss_army_knife::strings::CStringExt[][src]

pub trait CStringExt {
    fn from_fixed_length_buffer_ascii_nul_terminated(
        buffer: Vec<c_char>
    ) -> CString;
fn from_fixed_length_buffer_optionally_ascii_nul_terminated(
        buffer: Vec<c_char>
    ) -> CString; }

CString extensions.

Required methods

fn from_fixed_length_buffer_ascii_nul_terminated(buffer: Vec<c_char>) -> CString[src]

From a fixed length buffer, where the string is always terminated by an ASCII NUL.

fn from_fixed_length_buffer_optionally_ascii_nul_terminated(
    buffer: Vec<c_char>
) -> CString
[src]

From a fixed length buffer, where the string is not terminated by an ASCII NUL if it occupies the entire buffer.

Loading content...

Implementations on Foreign Types

impl CStringExt for CString[src]

Loading content...

Implementors

Loading content...