Home
last modified time | relevance | path

Searched refs:as_slice (Results 1 - 25 of 78) sorted by relevance

1234

/third_party/rust/crates/nix/test/
H A 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/
H A Dutf8.rs139 pub fn as_slice(&self) -> &[Utf8Range] { in as_slice() functions
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/memchr/src/
H A Dcow.rs31 self.as_slice() in deref()
52 pub fn as_slice(&self) -> &[u8] { in new_owned() functions
53 self.0.as_slice() in new_owned()
85 pub fn as_slice(&self) -> &[u8] { in as_slice() functions
94 pub fn as_slice(&self) -> &[u8] { in as_slice() functions
/third_party/rust/crates/clap/tests/
H A 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/rustix/src/backend/libc/io/
H A Dio_slice.rs43 pub fn as_slice(&self) -> &[u8] { in as_slice() functions
79 pub fn as_slice(&self) -> &[u8] { in as_slice() functions
/third_party/rust/crates/rustix/src/backend/linux_raw/io/
H A Dio_slice.rs45 /// <https://doc.rust-lang.org/nightly/std/io/struct.IoSlice.html#method.as_slice>
47 pub fn as_slice(&self) -> &[u8] { in as_slice() functions
85 /// <https://doc.rust-lang.org/nightly/std/io/struct.IoSliceMut.html#method.as_slice>
87 pub fn as_slice(&self) -> &[u8] { in as_slice() functions
/third_party/rust/crates/rust-openssl/openssl/src/x509/
H A 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/rust-openssl/openssl/src/
H A 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()
/third_party/rust/crates/unicode-ident/tests/fst/
H A Dmod.rs5 fst::Set::from(fst::raw::Fst::new(data.as_slice()).unwrap())
10 fst::Set::from(fst::raw::Fst::new(data.as_slice()).unwrap())
/third_party/rust/crates/linux-raw-sys/src/aarch64/
H A Dnetlink.rs20 pub unsafe fn as_slice(&self, len: usize) -> &[T] { in as_slice() functions
/third_party/rust/crates/linux-raw-sys/src/powerpc64/
H A Dnetlink.rs20 pub unsafe fn as_slice(&self, len: usize) -> &[T] { in as_slice() functions
/third_party/rust/crates/linux-raw-sys/src/riscv32/
H A Dnetlink.rs20 pub unsafe fn as_slice(&self, len: usize) -> &[T] { in as_slice() functions
/third_party/rust/crates/linux-raw-sys/src/mips64/
H A Dnetlink.rs20 pub unsafe fn as_slice(&self, len: usize) -> &[T] { in as_slice() functions
/third_party/rust/crates/linux-raw-sys/src/powerpc/
H A Dnetlink.rs20 pub unsafe fn as_slice(&self, len: usize) -> &[T] { in as_slice() functions
/third_party/rust/crates/codespan/codespan-reporting/tests/support/
H A Dmod.rs29 String::from_utf8_lossy(buffer.as_slice()).into_owned()
/third_party/rust/crates/linux-raw-sys/src/mips/
H A Dnetlink.rs20 pub unsafe fn as_slice(&self, len: usize) -> &[T] { in as_slice() functions
/third_party/rust/crates/linux-raw-sys/src/arm/
H A Dnetlink.rs20 pub unsafe fn as_slice(&self, len: usize) -> &[T] { in as_slice() functions
/third_party/rust/crates/linux-raw-sys/src/s390x/
H A Dnetlink.rs20 pub unsafe fn as_slice(&self, len: usize) -> &[T] { in as_slice() functions
/third_party/rust/crates/linux-raw-sys/src/sparc/
H A Dnetlink.rs20 pub unsafe fn as_slice(&self, len: usize) -> &[T] { in as_slice() functions
/third_party/rust/crates/linux-raw-sys/src/riscv64/
H A Dnetlink.rs20 pub unsafe fn as_slice(&self, len: usize) -> &[T] { in as_slice() functions
/third_party/rust/crates/linux-raw-sys/src/sparc64/
H A Dnetlink.rs20 pub unsafe fn as_slice(&self, len: usize) -> &[T] { in as_slice() functions
/third_party/rust/crates/linux-raw-sys/src/x32/
H A Dnetlink.rs20 pub unsafe fn as_slice(&self, len: usize) -> &[T] { in as_slice() functions
/third_party/rust/crates/linux-raw-sys/src/x86_64/
H A Dnetlink.rs20 pub unsafe fn as_slice(&self, len: usize) -> &[T] { in as_slice() functions
/third_party/rust/crates/linux-raw-sys/src/x86/
H A Dnetlink.rs20 pub unsafe fn as_slice(&self, len: usize) -> &[T] { in as_slice() functions
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/libclang-9/
H A Dclass.rs25 pub unsafe fn as_slice(&self, len: usize) -> &[T] { in as_slice() functions

Completed in 87 milliseconds

1234