Expand description
Strings that are compatible wuth Unix-like operating systems.
-
UnixStringandUnixStrare useful when you need to with Unix strings. Conversions betweenUnixString,UnixStrand Rust strings work similarly to those forCStringandCStr. -
UnixStringrepresents an owned string in Unix’s preferred representation. -
UnixStrrepresents a borrowed reference to a string in a format that can be passed to a Unix-lie operating system. It can be converted into a UTF-8 Rust string slice in a similar way toUnixString.
§Conversions
UnixStr implements two methods, from_bytes and as_bytes.
These do inexpensive conversions from and to UTF-8 byte slices.
Additionally, UnixString provides from_vec and into_vec methods
that consume their arguments, and take or produce vectors of u8.
Structs§
- UnixStr
- Borrowed reference to a Unix string (see
UnixString). - Unix
String - A type that can represent owned, mutable Unix strings, but is cheaply inter-convertible with Rust strings.