Trait nix::NixPath [−][src]
Required methods
fn is_empty(&self) -> bool
[src]
fn len(&self) -> usize
[src]
fn with_nix_path<T, F>(&self, f: F) -> Result<T> where
F: FnOnce(&CStr) -> T,
[src]
F: FnOnce(&CStr) -> T,
Implementations on Foreign Types
impl NixPath for str
[src]
fn is_empty(&self) -> bool
[src]
fn len(&self) -> usize
[src]
fn with_nix_path<T, F>(&self, f: F) -> Result<T> where
F: FnOnce(&CStr) -> T,
[src]
F: FnOnce(&CStr) -> T,
impl NixPath for OsStr
[src]
fn is_empty(&self) -> bool
[src]
fn len(&self) -> usize
[src]
fn with_nix_path<T, F>(&self, f: F) -> Result<T> where
F: FnOnce(&CStr) -> T,
[src]
F: FnOnce(&CStr) -> T,
impl NixPath for CStr
[src]
fn is_empty(&self) -> bool
[src]
fn len(&self) -> usize
[src]
fn with_nix_path<T, F>(&self, f: F) -> Result<T> where
F: FnOnce(&CStr) -> T,
[src]
F: FnOnce(&CStr) -> T,
impl NixPath for [u8]
[src]
fn is_empty(&self) -> bool
[src]
fn len(&self) -> usize
[src]
fn with_nix_path<T, F>(&self, f: F) -> Result<T> where
F: FnOnce(&CStr) -> T,
[src]
F: FnOnce(&CStr) -> T,
impl NixPath for Path
[src]
fn is_empty(&self) -> bool
[src]
fn len(&self) -> usize
[src]
fn with_nix_path<T, F>(&self, f: F) -> Result<T> where
F: FnOnce(&CStr) -> T,
[src]
F: FnOnce(&CStr) -> T,
impl NixPath for PathBuf
[src]
fn is_empty(&self) -> bool
[src]
fn len(&self) -> usize
[src]
fn with_nix_path<T, F>(&self, f: F) -> Result<T> where
F: FnOnce(&CStr) -> T,
[src]
F: FnOnce(&CStr) -> T,
impl<'a, NP: ?Sized + NixPath> NixPath for Option<&'a NP>
[src]
Treats None
as an empty string.
fn is_empty(&self) -> bool
[src]
fn len(&self) -> usize
[src]
fn with_nix_path<T, F>(&self, f: F) -> Result<T> where
F: FnOnce(&CStr) -> T,
[src]
F: FnOnce(&CStr) -> T,