/third_party/rust/crates/serde/serde/src/de/ |
H A D | size_hint.rs | 14 if mem::size_of::<Element>() == 0 { in cautious() 19 MAX_PREALLOC_BYTES / mem::size_of::<Element>(), in cautious()
|
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/ |
H A D | issue-1443.rs | 25 ::std::mem::size_of::<Bar>(), in bindgen_test_layout_Bar() 66 ::std::mem::size_of::<Baz>(), in bindgen_test_layout_Baz() 107 ::std::mem::size_of::<Tar>(), in bindgen_test_layout_Tar() 148 ::std::mem::size_of::<Taz>(), in bindgen_test_layout_Taz()
|
H A D | struct_with_nesting.rs | 33 ::std::mem::size_of::<foo__bindgen_ty_1__bindgen_ty_1>(), in bindgen_test_layout_foo__bindgen_ty_1__bindgen_ty_1() 77 ::std::mem::size_of::<foo__bindgen_ty_1__bindgen_ty_2>(), in bindgen_test_layout_foo__bindgen_ty_1__bindgen_ty_2() 133 ::std::mem::size_of::<foo__bindgen_ty_1>(), in bindgen_test_layout_foo__bindgen_ty_1() 168 ::std::mem::size_of::<foo>(), in bindgen_test_layout_foo()
|
H A D | sorted_items.rs | 30 ::std::mem::size_of::<Point>(), in bindgen_test_layout_Point() 66 ::std::mem::size_of::<Angle>(), in bindgen_test_layout_Angle() 117 ::std::mem::size_of::<Point>(), in bindgen_test_layout_Point() 157 ::std::mem::size_of::<Angle>(), in bindgen_test_layout_Angle()
|
H A D | sort-items.rs | 30 ::std::mem::size_of::<Point>(), in bindgen_test_layout_Point() 66 ::std::mem::size_of::<Angle>(), in bindgen_test_layout_Angle() 117 ::std::mem::size_of::<Point>(), in bindgen_test_layout_Point() 157 ::std::mem::size_of::<Angle>(), in bindgen_test_layout_Angle()
|
H A D | layout_eth_conf.rs | 167 ::std::mem::size_of::<rte_eth_rxmode>(), in bindgen_test_layout_rte_eth_rxmode() 430 ::std::mem::size_of::<rte_eth_txmode>(), in bindgen_test_layout_rte_eth_txmode() 566 ::std::mem::size_of::<rte_eth_rss_conf>(), in bindgen_test_layout_rte_eth_rss_conf() 679 ::std::mem::size_of::<rte_eth_vmdq_dcb_conf__bindgen_ty_1>(), in bindgen_test_layout_rte_eth_vmdq_dcb_conf__bindgen_ty_1() 718 ::std::mem::size_of::<rte_eth_vmdq_dcb_conf>(), in bindgen_test_layout_rte_eth_vmdq_dcb_conf() 822 ::std::mem::size_of::<rte_eth_dcb_rx_conf>(), in bindgen_test_layout_rte_eth_dcb_rx_conf() 875 ::std::mem::size_of::<rte_eth_vmdq_dcb_tx_conf>(), in bindgen_test_layout_rte_eth_vmdq_dcb_tx_conf() 930 ::std::mem::size_of::<rte_eth_dcb_tx_conf>(), in bindgen_test_layout_rte_eth_dcb_tx_conf() 981 ::std::mem::size_of::<rte_eth_vmdq_tx_conf>(), in bindgen_test_layout_rte_eth_vmdq_tx_conf() 1044 ::std::mem::size_of in bindgen_test_layout_rte_eth_vmdq_rx_conf__bindgen_ty_1() [all...] |
H A D | public-dtor.rs | 16 ::std::mem::size_of::<cv_Foo>(), in bindgen_test_layout_cv_Foo() 44 ::std::mem::size_of::<cv_Bar>(), in bindgen_test_layout_cv_Bar()
|
H A D | inherit_typedef.rs | 16 ::std::mem::size_of::<Foo>(), in bindgen_test_layout_Foo() 35 ::std::mem::size_of::<Bar>(), in bindgen_test_layout_Bar()
|
H A D | issue_311.rs | 25 ::std::mem::size_of::<jsval_layout__bindgen_ty_1>(), in bindgen_test_layout_jsval_layout__bindgen_ty_1() 38 ::std::mem::size_of::<jsval_layout>(), in bindgen_test_layout_jsval_layout()
|
H A D | func_return_must_use.rs | 40 ::std::mem::size_of::<AnnotatedStruct>(), in bindgen_test_layout_AnnotatedStruct() 60 ::std::mem::size_of::<PlainStruct>(), in bindgen_test_layout_PlainStruct()
|
H A D | issue-447.rs | 26 ::std::mem::size_of::<GuardObjectNotifier>(), in bindgen_test_layout_GuardObjectNotifier() 46 ::std::mem::size_of::<JSAutoCompartment>(), in bindgen_test_layout_JSAutoCompartment()
|
H A D | opaque_in_struct.rs | 18 ::std::mem::size_of::<opaque>(), in bindgen_test_layout_opaque() 39 ::std::mem::size_of::<container>(), in bindgen_test_layout_container()
|
H A D | vtable_recursive_sig.rs | 20 ::std::mem::size_of::<Base>(), in bindgen_test_layout_Base() 51 ::std::mem::size_of::<Derived>(), in bindgen_test_layout_Derived()
|
H A D | issue-801-opaque-sloppiness.rs | 22 ::std::mem::size_of::<B>(), in bindgen_test_layout_B() 47 ::std::mem::size_of::<C>(), in bindgen_test_layout_C()
|
H A D | array-of-zero-sized-types.rs | 17 ::std::mem::size_of::<Empty>(), in bindgen_test_layout_Empty() 40 ::std::mem::size_of::<HasArrayOfEmpty>(), in bindgen_test_layout_HasArrayOfEmpty()
|
H A D | issue-574-assertion-failure-in-codegen.rs | 24 ::std::mem::size_of::<_bindgen_ty_1>(), in bindgen_test_layout__bindgen_ty_1() 50 ::std::mem::size_of::<a>(), in __bindgen_test_layout_a_open0_int_close0_instantiation()
|
H A D | issue-573-layout-test-failures.rs | 24 ::std::mem::size_of::<AutoIdVector>(), in bindgen_test_layout_AutoIdVector() 47 ::std::mem::size_of::<Outer>(), in __bindgen_test_layout_Outer_open0_int_close0_instantiation()
|
H A D | replace_use.rs | 25 ::std::mem::size_of::<Test>(), in bindgen_test_layout_Test() 43 ::std::mem::size_of::<nsTArray>(), in __bindgen_test_layout_nsTArray_open0_long_close0_instantiation()
|
H A D | allowlist-namespaces.rs | 26 ::std::mem::size_of::<Helper>(), in bindgen_test_layout_Helper() 48 ::std::mem::size_of::<Test>(), in bindgen_test_layout_Test()
|
H A D | allowlisted-item-references-no-partialeq.rs | 16 ::std::mem::size_of::<NoPartialEq>(), in bindgen_test_layout_NoPartialEq() 37 ::std::mem::size_of::<AllowlistMe>(), in bindgen_test_layout_AllowlistMe()
|
H A D | allowlisted-item-references-no-hash.rs | 16 ::std::mem::size_of::<NoHash>(), in bindgen_test_layout_NoHash() 37 ::std::mem::size_of::<AllowlistMe>(), in bindgen_test_layout_AllowlistMe()
|
H A D | allowlisted_item_references_no_copy.rs | 16 ::std::mem::size_of::<NoCopy>(), in bindgen_test_layout_NoCopy() 37 ::std::mem::size_of::<AllowlistMe>(), in bindgen_test_layout_AllowlistMe()
|
/third_party/rust/crates/nix/src/ |
H A D | sched.rs | 227 let bytes = mem::size_of::<libc::cpu_set_t>(); 229 let bytes = mem::size_of::<libc::cpuset_t>(); 266 mem::size_of::<CpuSet>() as libc::size_t, in sched_setaffinity() 301 mem::size_of::<CpuSet>() as libc::size_t, in sched_getaffinity()
|
/third_party/rust/crates/rustix/src/backend/linux_raw/net/ |
H A D | syscalls.rs | 11 by_mut, by_ref, c_int, c_uint, ret, ret_owned_fd, ret_usize, size_of, slice, slice_mut, 167 let mut addrlen = core::mem::size_of::<sockaddr>() as socklen_t; 182 let mut addrlen = core::mem::size_of::<sockaddr>() as socklen_t; 207 let mut addrlen = core::mem::size_of::<sockaddr>() as socklen_t; 223 let mut addrlen = core::mem::size_of::<sockaddr>() as socklen_t; 321 size_of::<sockaddr_in, _>() 335 size_of::<sockaddr_in, _>(), 359 size_of::<sockaddr_in6, _>() 373 size_of::<sockaddr_in6, _>(), 471 let mut addrlen = core::mem::size_of [all...] |
/third_party/rust/crates/rustix/src/backend/linux_raw/param/ |
H A D | auxv.rs | 18 use core::mem::size_of; 223 assert_eq!(phent, size_of::<Elf_Phdr>()); in init_from_auxp() 333 || hdr.e_ehsize as usize != size_of::<Elf_Ehdr>() in check_elf_base() 334 || hdr.e_phentsize as usize != size_of::<Elf_Phdr>() in check_elf_base() 346 if hdr.e_phoff < size_of::<Elf_Ehdr>() { in check_elf_base()
|