/third_party/rust/crates/memchr/src/ |
D | cow.rs | 31 self.as_slice() in deref() 52 pub fn as_slice(&self) -> &[u8] { in as_slice() method 53 self.0.as_slice() in as_slice() 85 pub fn as_slice(&self) -> &[u8] { in as_slice() method 94 pub fn as_slice(&self) -> &[u8] { in as_slice() method
|
/third_party/rust/crates/nix/test/ |
D | test_sendfile.rs | 90 Some(headers.as_slice()), in test_sendfile_freebsd() 91 Some(trailers.as_slice()), in test_sendfile_freebsd() 141 Some(headers.as_slice()), in test_sendfile_dragonfly() 142 Some(trailers.as_slice()), in test_sendfile_dragonfly() 190 Some(headers.as_slice()), in test_sendfile_darwin() 191 Some(trailers.as_slice()), in test_sendfile_darwin()
|
/third_party/rust/crates/regex/regex-syntax/src/ |
D | utf8.rs | 139 pub fn as_slice(&self) -> &[Utf8Range] { in as_slice() method 153 self.as_slice().len() in len() 201 self.as_slice().iter() in into_iter() 545 assert_eq!(s.as_slice(), &[rutf8(0xA, 0xB)]); in reverse() 549 assert_eq!(s.as_slice(), &[rutf8(0xB, 0xC), rutf8(0xA, 0xB)]); in reverse() 554 s.as_slice(), in reverse() 566 s.as_slice(), in reverse()
|
/third_party/rust/crates/clap/tests/ |
D | macros.rs | 7 assert_eq!(arg.get_value_names(), Some(vec!["NUM".into()].as_slice())); in name_explicit() 16 assert_eq!(arg.get_value_names(), Some(vec!["NUM".into()].as_slice())); in name_from_long() 25 assert_eq!(arg.get_value_names(), Some(vec!["NUM".into()].as_slice())); in name_from_value() 229 assert_eq!(arg.get_value_names(), Some(vec!["NUM".into()].as_slice())); in positional() 237 assert_eq!(arg.get_value_names(), Some(vec!["NUM".into()].as_slice())); in positional() 245 assert_eq!(arg.get_value_names(), Some(vec!["NUM".into()].as_slice())); in positional() 253 assert_eq!(arg.get_value_names(), Some(vec!["NUM".into()].as_slice())); in positional() 261 assert_eq!(arg.get_value_names(), Some(vec!["NUM".into()].as_slice())); in positional() 269 assert_eq!(arg.get_value_names(), Some(vec!["NUM".into()].as_slice())); in positional()
|
/third_party/rust/crates/unicode-ident/tests/fst/ |
D | mod.rs | 5 fst::Set::from(fst::raw::Fst::new(data.as_slice()).unwrap()) in xid_start_fst() 10 fst::Set::from(fst::raw::Fst::new(data.as_slice()).unwrap()) in xid_continue_fst()
|
/third_party/rust/crates/rust-openssl/openssl/src/x509/ |
D | tests.rs | 98 assert_eq!(cn.data().as_slice(), b"foobar.com") in test_subject_read_cn() 108 assert_eq!(cn.data().as_slice(), b"example.com"); in test_nid_values() 114 assert_eq!(email.data().as_slice(), b"test@example.com"); in test_nid_values() 132 assert_eq!(email.data().as_slice(), b"test@example.com"); in test_nameref_iterator() 136 assert_eq!(cn.data().as_slice(), b"example.com"); in test_nameref_iterator() 154 assert_eq!(cn.data().as_slice(), b"this is the userId"); in test_nid_uid_value() 198 subject_key_id.as_slice(), in test_subject_key_id() 211 authority_key_id.as_slice(), in test_authority_key_id() 355 assert_eq!(cn.data().as_slice(), b"foobar.com"); in x509_builder() 498 hex::encode(signature.as_slice()), in signature() [all …]
|
/third_party/rust/crates/rustix/src/backend/libc/io/ |
D | io_slice.rs | 43 pub fn as_slice(&self) -> &[u8] { in as_slice() method 79 pub fn as_slice(&self) -> &[u8] { in as_slice() method
|
/third_party/rust/crates/rustix/src/backend/linux_raw/io/ |
D | io_slice.rs | 47 pub fn as_slice(&self) -> &[u8] { in as_slice() method 87 pub fn as_slice(&self) -> &[u8] { in as_slice() method
|
/third_party/rust/crates/rust-openssl/openssl/src/ |
D | pkcs7.rs | 313 let (pkcs7_decoded, _) = Pkcs7::from_smime(encrypted.as_slice()).expect("should succeed"); in encrypt_decrypt_test() 347 Pkcs7::from_smime(signed.as_slice()).expect("should succeed"); in sign_verify_test_detached() 391 Pkcs7::from_smime(signed.as_slice()).expect("should succeed"); in sign_verify_test_normal() 427 let (pkcs7_decoded, _) = Pkcs7::from_smime(signed.as_slice()).expect("should succeed"); in signers()
|
D | asn1.rs | 459 pub fn as_slice(&self) -> &[u8] { in as_slice() method 599 pub fn as_slice(&self) -> &[u8] { in as_slice() method 639 pub fn as_slice(&self) -> &[u8] { in as_slice() method 701 pub fn as_slice(&self) -> &[u8] { in as_slice() method 900 object.as_slice(), in object_to_slice() 908 assert_eq!(octet_string.as_slice(), b"hello world"); in asn1_octet_string()
|
/third_party/rust/crates/codespan/codespan-reporting/tests/support/ |
D | mod.rs | 29 String::from_utf8_lossy(buffer.as_slice()).into_owned() in emit_no_color()
|
/third_party/rust/crates/cxx/demo/src/ |
D | main.rs | 41 next.map_or(&[], Vec::as_slice) in next_chunk()
|
/third_party/rust/crates/cxx/src/ |
D | rust_slice.rs | 26 pub unsafe fn as_slice<'a, T>(self) -> &'a [T] { in as_slice() method
|
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/ |
D | zero-size-array-align.rs | 25 pub unsafe fn as_slice(&self, len: usize) -> &[T] { in as_slice() method
|
D | derive-hash-struct-with-incomplete-array.rs | 25 pub unsafe fn as_slice(&self, len: usize) -> &[T] { in as_slice() method
|
D | issue-643-inner-struct.rs | 25 pub unsafe fn as_slice(&self, len: usize) -> &[T] { in as_slice() method
|
D | zero-sized-array.rs | 25 pub unsafe fn as_slice(&self, len: usize) -> &[T] { in as_slice() method
|
D | incomplete-array-padding.rs | 111 pub unsafe fn as_slice(&self, len: usize) -> &[T] { in as_slice() method
|
/third_party/rust/crates/rustix/tests/thread/ |
D | prctl.rs | 114 let mut decoder = flate2::bufread::GzDecoder::new(compressed_bytes.as_slice()); in load_linux_kernel_config()
|
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/libclang-9/ |
D | issue-643-inner-struct.rs | 25 pub unsafe fn as_slice(&self, len: usize) -> &[T] { in as_slice() method
|
D | zero-sized-array.rs | 25 pub unsafe fn as_slice(&self, len: usize) -> &[T] { in as_slice() method
|
D | derive-hash-struct-with-incomplete-array.rs | 25 pub unsafe fn as_slice(&self, len: usize) -> &[T] { in as_slice() method
|
D | incomplete-array-padding.rs | 111 pub unsafe fn as_slice(&self, len: usize) -> &[T] { in as_slice() method
|
/third_party/rust/crates/rustix/tests/process/ |
D | prctl.rs | 181 let mut decoder = flate2::bufread::GzDecoder::new(compressed_bytes.as_slice()); in load_linux_kernel_config()
|
/third_party/rust/crates/rustix/src/path/ |
D | arg.rs | 837 CString::new(self.as_slice()).map_err(|_cstr_err| io::Errno::INVAL)?, in as_cow_c_str() 847 CString::new(self.as_slice()).map_err(|_cstr_err| io::Errno::INVAL)?, in into_c_str() 875 CString::new(self.as_slice()).map_err(|_cstr_err| io::Errno::INVAL)?, in as_cow_c_str()
|