Type Definition rustix::ffi::CString

1.0.0 · source · []
pub type CString = CString;
Expand description

Trait Implementations

Returns a view of this string as a string slice.

Returns a potentially-lossy rendering of this string as a Cow<'_, str>. Read more

Returns a view of this string as a maybe-owned CStr.

Consumes self and returns a view of this string as a maybe-owned CStr. Read more

Runs a closure with self passed in as a &CStr.

Returns a view of this string as a string slice.

Returns a potentially-lossy rendering of this string as a Cow<'_, str>. Read more

Returns a view of this string as a maybe-owned CStr.

Consumes self and returns a view of this string as a maybe-owned CStr. Read more

Runs a closure with self passed in as a &CStr.