Trait c_str::FromCStr [] [src]

pub trait FromCStr {
    unsafe fn from_c_str(c_str: *const c_char) -> Self;
unsafe fn from_raw_buf(c_str: *const u8) -> Self; }

A generic trait for converting a *const c_str to another Rust type

Required Methods

Copy the c_str into the returned type

the same as from_c_str but for old code compatibility

Implementations on Foreign Types

impl FromCStr for String
[src]

[src]

[src]

impl FromCStr for CString
[src]

[src]

[src]

Implementors