string

Type Alias string 

Source
pub type string = basic_string<Pod<i8>>;
Expand description

对应std::string

Aliased Type§

#[repr(C)]
pub struct string { /* private fields */ }

Implementations§

Source§

impl string

Source

pub fn new() -> Self

Source

pub fn with_cstr(s: &CStr) -> Self

Source

pub fn with_buf(b: &[u8]) -> Self

Source

pub fn as_cstr(&self) -> &CStr

Trait Implementations§

Source§

impl Default for string

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl From<&CStr> for string

Source§

fn from(s: &CStr) -> Self

Converts to this type from the input type.