Home
last modified time | relevance | path

Searched refs:repr (Results 1 – 25 of 1189) sorted by relevance

12345678910>>...48

/third_party/python/Lib/ctypes/test/
Dtest_parameters.py226 self.assertRegex(repr(c_bool.from_param(True)), r"^<cparam '\?' at 0x[A-Fa-f0-9]+>$")
227 self.assertEqual(repr(c_char.from_param(97)), "<cparam 'c' ('a')>")
228 self.assertRegex(repr(c_wchar.from_param('a')), r"^<cparam 'u' at 0x[A-Fa-f0-9]+>$")
229 self.assertEqual(repr(c_byte.from_param(98)), "<cparam 'b' (98)>")
230 self.assertEqual(repr(c_ubyte.from_param(98)), "<cparam 'B' (98)>")
231 self.assertEqual(repr(c_short.from_param(511)), "<cparam 'h' (511)>")
232 self.assertEqual(repr(c_ushort.from_param(511)), "<cparam 'H' (511)>")
233 self.assertRegex(repr(c_int.from_param(20000)), r"^<cparam '[li]' \(20000\)>$")
234 self.assertRegex(repr(c_uint.from_param(20000)), r"^<cparam '[LI]' \(20000\)>$")
235 self.assertRegex(repr(c_long.from_param(20000)), r"^<cparam '[li]' \(20000\)>$")
[all …]
/third_party/rust/crates/aho-corasick/src/
Ddfa.rs21 fn repr(&self) -> &Repr<S> { in repr() method
23 DFA::Standard(ref dfa) => dfa.repr(), in repr()
24 DFA::ByteClass(ref dfa) => dfa.repr(), in repr()
25 DFA::Premultiplied(ref dfa) => dfa.repr(), in repr()
26 DFA::PremultipliedByteClass(ref dfa) => dfa.repr(), in repr()
31 &self.repr().match_kind in match_kind()
35 self.repr().heap_bytes in heap_bytes()
39 self.repr().max_pattern_len in max_pattern_len()
43 self.repr().pattern_count in pattern_count()
47 self.repr().prefilter.as_ref().map(|p| p.as_ref()) in prefilter()
[all …]
/third_party/rust/crates/syn/src/
Dlit.rs54 repr: Box<LitRepr>,
61 repr: Box<LitRepr>,
68 repr: Box<LitRepr>,
75 repr: Box<LitRepr>,
87 repr: Box<LitIntRepr>,
102 repr: Box<LitFloatRepr>,
125 repr: Box::new(LitRepr { in new()
133 let repr = self.repr.token.to_string(); in value() localVariable
134 let (value, _suffix) = value::parse_lit_str(&repr); in value()
234 self.repr.token.span() in span()
[all …]
/third_party/rust/crates/cxx/src/
Dunique_ptr.rs14 #[repr(C)]
19 repr: MaybeUninit<*mut c_void>, field
32 repr: T::__null(), in null()
43 repr: T::__new(value), in new()
52 let ptr = unsafe { T::__get(self.repr) }; in is_null()
59 unsafe { T::__get(self.repr).as_ref() } in as_ref()
66 let mut_reference = (T::__get(self.repr) as *mut T).as_mut()?; in as_mut()
91 let ptr = unsafe { T::__release(self.repr) }; in into_raw()
106 repr: unsafe { T::__raw(raw) }, in from_raw()
124 unsafe { T::__drop(self.repr) } in drop()
[all …]
Drust_slice.rs8 #[repr(C)]
10 repr: [MaybeUninit<usize>; mem::size_of::<NonNull<[()]>>() / mem::size_of::<usize>()], field
47 let rust_slice = RustSlice { repr: self.repr }; in as_non_null_ptr()
48 let repr = unsafe { mem::transmute::<RustSlice, NonNull<[()]>>(rust_slice) }; in as_non_null_ptr() localVariable
49 repr.cast() in as_non_null_ptr()
53 let rust_slice = RustSlice { repr: self.repr }; in len()
54 let repr = unsafe { mem::transmute::<RustSlice, NonNull<[()]>>(rust_slice) }; in len() localVariable
58 unsafe { repr.as_ref() }.len() in len()
/third_party/rust/crates/cxx/syntax/
Ddiscriminant.rs12 repr: Option<Atom>, field
30 pub fn new(repr: Option<Atom>) -> Self { in new()
32 repr, in new()
39 let (discriminant, repr) = expr_to_discriminant(expr)?; in insert()
40 match (self.repr, repr) { in insert()
54 self.repr = Some(new_repr); in insert()
56 (Some(prev), Some(repr)) if prev != repr => { in insert()
57 let msg = format!("expected {}, found {}", prev, repr); in insert()
90 if let Some(repr) = self.repr { in inferred_repr()
91 return Ok(repr); in inferred_repr()
[all …]
/third_party/python/Lib/test/
Dtest_reprlib.py15 from reprlib import repr as r # Don't shadow builtin repr
34 expected = repr(s)[:13] + "..." + repr(s)[-14:]
37 eq(r("\"'"), repr("\"'"))
39 expected = repr(s)[:13] + "..." + repr(s)[-14:]
51 expected = repr(t3)[:-2] + "...)"
52 eq(r2.repr(t3), expected)
123 eq(r(123), repr(123))
124 eq(r(123), repr(123))
125 eq(r(1.0/3), repr(1.0/3))
128 expected = repr(n)[:18] + "..." + repr(n)[-19:]
[all …]
/third_party/rust/crates/libc/src/unix/linux_like/linux/
Dalign.rs14 repr(align(4)))]
25 repr(align(8)))]
32 repr(align(4)))]
36 repr(align(8)))]
42 #[repr(align(4))]
48 #[repr(align(8))]
63 repr(align(4)))]
66 repr(align(8)))]
69 repr(align(4)))]
72 repr(align(8)))]
[all …]
/third_party/rust/crates/libc/src/fuchsia/
Dalign.rs9 repr(align(4)))]
15 repr(align(8)))]
21 repr(align(4)))]
23 repr(align(8)))]
28 #[repr(align(4))]
38 repr(align(4)))]
42 repr(align(8)))]
50 repr(align(4)))]
54 repr(align(8)))]
60 repr(align(4)))]
[all …]
/third_party/rust/crates/linux-raw-sys/src/powerpc64/
Dnetlink.rs3 #[repr(C)]
241 #[repr(C)]
246 #[repr(C)]
252 #[repr(C)]
266 #[repr(C)]
267 #[repr(align(16))]
272 #[repr(C)]
298 #[repr(C)]
323 #[repr(C)]
331 #[repr(C)]
[all …]
/third_party/rust/crates/linux-raw-sys/src/powerpc/
Dnetlink.rs3 #[repr(C)]
241 #[repr(C)]
246 #[repr(C)]
252 #[repr(C)]
266 #[repr(C)]
267 #[repr(align(16))]
272 #[repr(C)]
298 #[repr(C)]
323 #[repr(C)]
331 #[repr(C)]
[all …]
/third_party/rust/crates/linux-raw-sys/src/s390x/
Dnetlink.rs3 #[repr(C)]
241 #[repr(C)]
246 #[repr(C)]
252 #[repr(C)]
268 #[repr(C)]
273 #[repr(C)]
300 #[repr(C)]
325 #[repr(C)]
333 #[repr(C)]
342 #[repr(C)]
[all …]
/third_party/rust/crates/linux-raw-sys/src/sparc64/
Dnetlink.rs3 #[repr(C)]
241 #[repr(C)]
246 #[repr(C)]
252 #[repr(C)]
266 #[repr(C)]
279 #[repr(C)]
298 #[repr(C)]
323 #[repr(C)]
331 #[repr(C)]
340 #[repr(C)]
[all …]
/third_party/rust/crates/linux-raw-sys/src/riscv64/
Dnetlink.rs3 #[repr(C)]
240 #[repr(C)]
245 #[repr(C)]
251 #[repr(C)]
265 #[repr(C)]
291 #[repr(C)]
316 #[repr(C)]
324 #[repr(C)]
333 #[repr(C)]
342 #[repr(u32)]
[all …]
/third_party/rust/crates/linux-raw-sys/src/sparc/
Dnetlink.rs3 #[repr(C)]
241 #[repr(C)]
246 #[repr(C)]
252 #[repr(C)]
266 #[repr(C)]
292 #[repr(C)]
317 #[repr(C)]
325 #[repr(C)]
334 #[repr(C)]
343 #[repr(u32)]
[all …]
/third_party/rust/crates/linux-raw-sys/src/mips64/
Dnetlink.rs3 #[repr(C)]
250 #[repr(C)]
255 #[repr(C)]
261 #[repr(C)]
275 #[repr(C)]
301 #[repr(C)]
326 #[repr(C)]
334 #[repr(C)]
343 #[repr(C)]
352 #[repr(u32)]
[all …]
/third_party/rust/crates/linux-raw-sys/src/x32/
Dnetlink.rs3 #[repr(C)]
241 #[repr(C)]
246 #[repr(C)]
252 #[repr(C)]
266 #[repr(C)]
292 #[repr(C)]
317 #[repr(C)]
325 #[repr(C)]
334 #[repr(C)]
343 #[repr(u32)]
[all …]
/third_party/rust/crates/linux-raw-sys/src/riscv32/
Dnetlink.rs3 #[repr(C)]
240 #[repr(C)]
245 #[repr(C)]
251 #[repr(C)]
265 #[repr(C)]
291 #[repr(C)]
316 #[repr(C)]
324 #[repr(C)]
333 #[repr(C)]
342 #[repr(u32)]
[all …]
/third_party/rust/crates/linux-raw-sys/src/arm/
Dnetlink.rs3 #[repr(C)]
241 #[repr(C)]
246 #[repr(C)]
252 #[repr(C)]
266 #[repr(C)]
292 #[repr(C)]
317 #[repr(C)]
325 #[repr(C)]
334 #[repr(C)]
343 #[repr(u32)]
[all …]
/third_party/rust/crates/linux-raw-sys/src/mips/
Dnetlink.rs3 #[repr(C)]
250 #[repr(C)]
255 #[repr(C)]
261 #[repr(C)]
275 #[repr(C)]
301 #[repr(C)]
326 #[repr(C)]
334 #[repr(C)]
343 #[repr(C)]
352 #[repr(u32)]
[all …]
/third_party/rust/crates/linux-raw-sys/src/aarch64/
Dnetlink.rs3 #[repr(C)]
241 #[repr(C)]
246 #[repr(C)]
252 #[repr(C)]
266 #[repr(C)]
292 #[repr(C)]
317 #[repr(C)]
325 #[repr(C)]
334 #[repr(C)]
343 #[repr(u32)]
[all …]
/third_party/rust/crates/linux-raw-sys/src/x86/
Dnetlink.rs3 #[repr(C)]
241 #[repr(C)]
246 #[repr(C)]
252 #[repr(C)]
266 #[repr(C)]
292 #[repr(C)]
317 #[repr(C)]
325 #[repr(C)]
334 #[repr(C)]
343 #[repr(u32)]
[all …]
/third_party/rust/crates/linux-raw-sys/src/x86_64/
Dnetlink.rs3 #[repr(C)]
241 #[repr(C)]
246 #[repr(C)]
252 #[repr(C)]
266 #[repr(C)]
292 #[repr(C)]
317 #[repr(C)]
325 #[repr(C)]
334 #[repr(C)]
343 #[repr(u32)]
[all …]
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/
Dsentry-defined-multiple-times.rs15 #[repr(C)]
20 #[repr(C)]
25 #[repr(C)]
59 #[repr(C)]
77 #[repr(C)]
113 #[repr(C)]
118 #[repr(C)]
174 #[repr(C)]
179 #[repr(C)]
184 #[repr(C)]
[all …]
Denum_explicit_type.rs8 #[repr(u8)]
14 #[repr(i8)]
20 #[repr(u16)]
26 #[repr(i64)]
31 #[repr(i64)]
36 #[repr(u64)]
41 #[repr(u8)]
47 #[repr(u8)]
56 #[repr(u8)]

12345678910>>...48