[−][src]Struct posish::path::DecInt
Format an integer into a decimal Path
component, without constructing a
temporary PathBuf
or String
. This is used for opening paths such
as /proc/self/fd/<fd>
on Linux.
Implementations
impl DecInt
[src]
pub fn new<Int: Integer>(i: Int) -> Self
[src]
Construct a new path component from an integer.
pub fn from_fd<Fd: AsRawFd>(fd: &Fd) -> Self
[src]
Construct a new path component from a file descriptor.
Trait Implementations
impl Arg for DecInt
[src]
fn as_str(&self) -> Result<&str>
[src]
fn to_string_lossy(&self) -> Cow<'_, str>
[src]
fn as_c_str(&self) -> Result<Cow<'_, CStr>>
[src]
fn as_maybe_utf8_bytes(&self) -> &[u8]
[src]
impl AsRef<Path> for DecInt
[src]
impl Deref for DecInt
[src]
Auto Trait Implementations
impl RefUnwindSafe for DecInt
impl Send for DecInt
impl Sync for DecInt
impl Unpin for DecInt
impl UnwindSafe for DecInt
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>,