Struct rsix::path::DecInt [−][src]
pub struct DecInt { /* fields omitted */ }
Expand description
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.
Example
use rsix::path::DecInt;
assert_eq!(
format!("hello {}", DecInt::new(9876).display()),
"hello 9876"
);
Implementations
Construct a new path component from a file descriptor.
Trait Implementations
Returns a potentially-lossy rendering of this string as a Cow<str>
.
Returns a view of this string as a maybe-owned CStr
.
Returns a view of this string as a byte slice.
Auto Trait Implementations
impl RefUnwindSafe for DecInt
impl UnwindSafe for DecInt
Blanket Implementations
Mutably borrows from an owned value. Read more