Home
last modified time | relevance | path

Searched refs:DecInt (Results 1 - 8 of 8) sorted by relevance

/third_party/rust/crates/rustix/tests/path/
H A Ddec_int.rs1 use rustix::path::DecInt;
5 assert_eq!(DecInt::new(0).as_ref().to_str().unwrap(), "0"); in test_dec_int()
6 assert_eq!(DecInt::new(-1).as_ref().to_str().unwrap(), "-1"); in test_dec_int()
7 assert_eq!(DecInt::new(789).as_ref().to_str().unwrap(), "789"); in test_dec_int()
9 DecInt::new(i64::MIN).as_ref().to_str().unwrap(), in test_dec_int()
13 DecInt::new(i64::MAX).as_ref().to_str().unwrap(), in test_dec_int()
17 DecInt::new(u64::MAX).as_ref().to_str().unwrap(), in test_dec_int()
H A Darg.rs5 use rustix::path::DecInt;
134 let t: DecInt = DecInt::new(43110); in test_arg()
/third_party/rust/crates/rustix/src/path/
H A Ddec_int.rs35 /// use rustix::path::DecInt;
39 /// format!("hello {}", DecInt::new(9876).as_ref().display()),
44 pub struct DecInt { structure names
51 impl DecInt { impls
73 // Safety: `DecInt` always holds a formatted decimal number, so it's in as_str()
96 struct DecIntWriter(DecInt);
113 impl AsRef<Path> for DecInt {
122 impl fmt::Debug for DecInt {
H A Dmod.rs9 pub use dec_int::DecInt;
H A Darg.rs11 use crate::path::DecInt;
900 impl Arg for DecInt {
/third_party/rust/crates/rustix/tests/net/
H A Dunix.rs12 // This test uses `DecInt`.
22 use rustix::path::DecInt;
66 write(&data_socket, DecInt::new(sum).as_bytes()).unwrap(); in server()
/third_party/rust/crates/rustix/src/io/
H A Dprocfs.rs26 use crate::path::DecInt;
251 let proc_self = proc_opendirat(proc, DecInt::new(pid.as_raw_nonzero().get()))?; in proc_self()
345 let fd_str = DecInt::from_fd(fd);
/third_party/rust/crates/rustix/src/backend/linux_raw/termios/
H A Dsyscalls.rs19 use crate::{ffi::CStr, fs::FileType, path::DecInt};
233 super::super::fs::syscalls::readlinkat(proc_self_fd, DecInt::from_fd(fd).as_c_str(), buf)?;

Completed in 4 milliseconds