Struct path_dedot::MAIN_SEPARATOR [−]
pub struct MAIN_SEPARATOR { /* fields omitted */ }
The main separator for the target OS.
Methods from __Deref<Target = OsString>
pub fn as_os_str(&self) -> &OsStr
1.0.0[src]
pub fn as_os_str(&self) -> &OsStr
1.0.0
[src]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);
pub fn capacity(&self) -> usize
1.9.0[src]
pub fn capacity(&self) -> usize
1.9.0
[src]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
impl __Deref for MAIN_SEPARATOR
type Target = OsString
The resulting type after dereferencing.
fn deref(&self) -> &OsString
fn deref(&self) -> &OsString
Dereferences the value.
impl LazyStatic for MAIN_SEPARATOR
impl LazyStatic for MAIN_SEPARATOR
fn initialize(lazy: &Self)
fn initialize(lazy: &Self)
Auto Trait Implementations
impl Send for MAIN_SEPARATOR
impl Send for MAIN_SEPARATOR
impl Sync for MAIN_SEPARATOR
impl Sync for MAIN_SEPARATOR