Home
last modified time | relevance | path

Searched refs:as_slice (Results 1 – 25 of 91) sorted by relevance

1234

/third_party/rust/crates/memchr/src/
Dcow.rs31 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/
Dtest_sendfile.rs90 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/
Dutf8.rs139 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/
Dmacros.rs7 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/
Dmod.rs5 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/
Dtests.rs98 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/
Dio_slice.rs43 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/
Dio_slice.rs47 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/
Dpkcs7.rs313 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()
Dasn1.rs459 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/
Dmod.rs29 String::from_utf8_lossy(buffer.as_slice()).into_owned() in emit_no_color()
/third_party/rust/crates/cxx/demo/src/
Dmain.rs41 next.map_or(&[], Vec::as_slice) in next_chunk()
/third_party/rust/crates/cxx/src/
Drust_slice.rs26 pub unsafe fn as_slice<'a, T>(self) -> &'a [T] { in as_slice() method
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/
Dzero-size-array-align.rs25 pub unsafe fn as_slice(&self, len: usize) -> &[T] { in as_slice() method
Dderive-hash-struct-with-incomplete-array.rs25 pub unsafe fn as_slice(&self, len: usize) -> &[T] { in as_slice() method
Dissue-643-inner-struct.rs25 pub unsafe fn as_slice(&self, len: usize) -> &[T] { in as_slice() method
Dzero-sized-array.rs25 pub unsafe fn as_slice(&self, len: usize) -> &[T] { in as_slice() method
Dincomplete-array-padding.rs111 pub unsafe fn as_slice(&self, len: usize) -> &[T] { in as_slice() method
/third_party/rust/crates/rustix/tests/thread/
Dprctl.rs114 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/
Dissue-643-inner-struct.rs25 pub unsafe fn as_slice(&self, len: usize) -> &[T] { in as_slice() method
Dzero-sized-array.rs25 pub unsafe fn as_slice(&self, len: usize) -> &[T] { in as_slice() method
Dderive-hash-struct-with-incomplete-array.rs25 pub unsafe fn as_slice(&self, len: usize) -> &[T] { in as_slice() method
Dincomplete-array-padding.rs111 pub unsafe fn as_slice(&self, len: usize) -> &[T] { in as_slice() method
/third_party/rust/crates/rustix/tests/process/
Dprctl.rs181 let mut decoder = flate2::bufread::GzDecoder::new(compressed_bytes.as_slice()); in load_linux_kernel_config()
/third_party/rust/crates/rustix/src/path/
Darg.rs837 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()

1234