Struct path_absolutize::MAIN_SEPARATOR[]

pub struct MAIN_SEPARATOR { /* fields omitted */ }

The main separator for the target OS.

Methods from Deref<Target = OsString>

Converts to an OsStr slice.

Examples

use std::ffi::{OsString, OsStr};

let os_string = OsString::from("foo");
let os_str = OsStr::new("foo");
assert_eq!(os_string.as_os_str(), os_str);

Returns the capacity this OsString can hold without reallocating.

See OsString introduction for information about encoding.

Examples

use std::ffi::OsString;

let mut os_string = OsString::with_capacity(10);
assert!(os_string.capacity() >= 10);

Trait Implementations

impl Deref for MAIN_SEPARATOR

The resulting type after dereferencing.

Dereferences the value.

impl LazyStatic for MAIN_SEPARATOR

Auto Trait Implementations