unixstring 0.2.3

An FFI-friendly null-terminated byte string
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! [`UnixString`](UnixString) is an FFI-friendly null-terminated byte string that may be constructed from a [`String`], a [`CString`](std::ffi::CString), a [`PathBuf`](std::path::PathBuf), an [`OsString`](std::ffi::OsString) or a collection of bytes.
//!
//!
//! An [`UnixString`](UnixString) can then be converted into a slice of [`CStr`](std::ffi::CStr), [`Path`](std::path::Path) or [`OsStr`](std::ffi::OsStr) in infallible and zero-cost operations.

mod as_ref;
mod error;
mod from;
mod memchr;
mod try_from;
mod unix_string;

pub use error::{Error, Result};
pub use unix_string::UnixString;