pub type ZStr = CStr;
Expand description
See core::ffi::CStr.
Trait Implementations
sourceimpl Arg for &ZStr
Available on crate features fs
or net
only.
impl Arg for &ZStr
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_z_str(&self) -> Result<Cow<'_, ZStr>>
fn as_cow_z_str(&self) -> Result<Cow<'_, ZStr>>
Returns a view of this string as a maybe-owned ZStr
.
sourcefn into_z_str<'b>(self) -> Result<Cow<'b, ZStr>> where
Self: 'b,
fn into_z_str<'b>(self) -> Result<Cow<'b, ZStr>> where
Self: 'b,
sourcefn into_with_z_str<T, F>(self, f: F) -> Result<T> where
Self: Sized,
F: FnOnce(&ZStr) -> Result<T>,
fn into_with_z_str<T, F>(self, f: F) -> Result<T> where
Self: Sized,
F: FnOnce(&ZStr) -> Result<T>,
Runs a closure with self
passed in as a &ZStr
.
sourcefn as_cow_c_str(&self) -> Result<Cow<'_, ZStr>>
fn as_cow_c_str(&self) -> Result<Cow<'_, ZStr>>
Returns a view of this string as a maybe-owned ZStr
.