pub type CString = CString;
Expand description
See alloc::ffi::CString.
Trait Implementations
sourceimpl Arg for &CString
Available on crate features fs
or net
only.
impl Arg for &CString
Available on crate features
fs
or net
only.sourcefn to_string_lossy(&self) -> Cow<'_, str>
fn to_string_lossy(&self) -> Cow<'_, str>
Returns a potentially-lossy rendering of this string as a Cow<'_, str>
. Read more
sourcefn as_cow_c_str(&self) -> Result<Cow<'_, CStr>>
fn as_cow_c_str(&self) -> Result<Cow<'_, CStr>>
Returns a view of this string as a maybe-owned CStr
.
sourcefn into_c_str<'b>(self) -> Result<Cow<'b, CStr>> where
Self: 'b,
fn into_c_str<'b>(self) -> Result<Cow<'b, CStr>> where
Self: 'b,
sourceimpl Arg for CString
Available on crate features fs
or net
only.
impl Arg for CString
Available on crate features
fs
or net
only.sourcefn to_string_lossy(&self) -> Cow<'_, str>
fn to_string_lossy(&self) -> Cow<'_, str>
Returns a potentially-lossy rendering of this string as a Cow<'_, str>
. Read more
sourcefn as_cow_c_str(&self) -> Result<Cow<'_, CStr>>
fn as_cow_c_str(&self) -> Result<Cow<'_, CStr>>
Returns a view of this string as a maybe-owned CStr
.