Expand description
Convenient and efficient string argument passing.
This module defines the Arg trait and implements it for several common
string types. This allows users to pass any of these string types directly
to rustix APIs with string arguments, and it allows rustix to implement
NUL-termination without the need for copying or dynamic allocation where
possible.
Traits§
- Arg
 - A trait for passing path arguments.
 
Functions§
- option_
into_ with_ c_ str  - Runs a closure on 
argwhereAis mapped to a&CStr - with_
c_ 🔒str  - Runs a closure with 
bytespassed in as a&CStr. - with_
c_ 🔒str_ slow_ path  - The slow path which handles any length. In theory OS’s only support up to
PATH_MAX, but we let the OS enforce that.