Home
last modified time | relevance | path

Searched refs:assert_eq_size (Results 1 – 7 of 7) sorted by relevance

/third_party/rust/crates/static-assertions-rs/tests/
Deq_size.rs7 assert_eq_size!(u8, u8, (u8,), [u8; 1]);
21 assert_eq_size!(<Value as Trait>::AssocItem, Value);
67 assert_eq_size!([u8; 2], u16); in test_eq_size()
68 assert_eq_size!([u8; 2], u16, (u8, u8)); in test_eq_size()
69 assert_eq_size!([u8; 4], u32, (u16, u8, u8), (u16, u16)); in test_eq_size()
77 assert_eq_size!(u8, u8); in test_eq_size()
93 assert_eq_size!(u32, PanicDrop<u32>); in test_eq_size_no_drop()
94 assert_eq_size!(PanicDrop<u32>, u32); in test_eq_size_no_drop()
95 assert_eq_size!(PanicDrop<u32>, PanicDrop<u32>); in test_eq_size_no_drop()
/third_party/rust/crates/static-assertions-rs/src/
Dlib.rs91 mod assert_eq_size; module
Dassert_eq_size.rs34 macro_rules! assert_eq_size { macro
/third_party/rust/crates/static-assertions-rs/
DREADME.md51 - [`assert_eq_size!`]
172 [`assert_eq_size!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.assert…
DCHANGELOG.md139 - Allow `assert_eq_size`, `const_assert`, and `const_assert_eq` in non-function
143 - **[Breaking]** Semicolon-separated `assert_eq_size` is no longer allowed
/third_party/rust/crates/linux-raw-sys/src/
Dlib.rs48 static_assertions::assert_eq_size!(ctypes::c_char, libc::c_char);
/third_party/rust/crates/nix/src/sys/socket/
Daddr.rs44 static_assertions::assert_eq_size!(net::Ipv4Addr, libc::in_addr); in ipv4addr_to_libc()
55 static_assertions::assert_eq_size!(net::Ipv6Addr, libc::in6_addr); in ipv6addr_to_libc()