[−][src]Struct path_dedot::MAIN_SEPARATOR
The main separator for the target OS.
Methods from Deref<Target = OsString>
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]
Returns the capacity this OsString
can hold without reallocating.
See OsString
introduction for information about encoding.
Examples
use std::ffi::OsString; let os_string = OsString::with_capacity(10); assert!(os_string.capacity() >= 10);
Trait Implementations
impl Deref for MAIN_SEPARATOR
[src]
impl LazyStatic for MAIN_SEPARATOR
[src]
fn initialize(lazy: &Self)
[src]
Auto Trait Implementations
impl RefUnwindSafe for MAIN_SEPARATOR
impl Send for MAIN_SEPARATOR
impl Sync for MAIN_SEPARATOR
impl Unpin for MAIN_SEPARATOR
impl UnwindSafe for MAIN_SEPARATOR
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,