Searched refs:DecInt (Results 1 - 8 of 8) sorted by relevance
/third_party/rust/crates/rustix/tests/path/ |
H A D | dec_int.rs | 1 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 D | arg.rs | 5 use rustix::path::DecInt; 134 let t: DecInt = DecInt::new(43110); in test_arg()
|
/third_party/rust/crates/rustix/src/path/ |
H A D | dec_int.rs | 35 /// 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 D | mod.rs | 9 pub use dec_int::DecInt;
|
H A D | arg.rs | 11 use crate::path::DecInt; 900 impl Arg for DecInt {
|
/third_party/rust/crates/rustix/tests/net/ |
H A D | unix.rs | 12 // 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 D | procfs.rs | 26 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 D | syscalls.rs | 19 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