Searched refs:const_assert (Results 1 – 5 of 5) sorted by relevance
5 use assertions::const_assert;37 const_assert!(size_of::<DescriptorHeader>() == 2); in _assert_descriptor_header()70 const_assert!(size_of::<DeviceDescriptor>() == 18 - 2); in _assert_device_descriptor()97 const_assert!(size_of::<ConfigDescriptor>() == 9 - 2); in _assert_config_descriptor()131 const_assert!(size_of::<InterfaceDescriptor>() == 9 - 2); in _assert_interface_descriptor()156 const_assert!(size_of::<EndpointDescriptor>() == 7 - 2); in _assert_endpoint_descriptor()275 const_assert!(size_of::<UsbRequestSetup>() == 8); in _assert_usb_request_setup()
35 use assertions::const_assert;50 const_assert!(align_of::<$new_type>() == align_of::<$old_type>());51 const_assert!(size_of::<$new_type>() == size_of::<$old_type>());
41 macro_rules! const_assert { macro
18 use assertions::const_assert;117 const_assert!(ALIGN_OF_MEMORY >= ALIGN_OF_REGION); in set_mem_table()
18 use assertions::const_assert;677 const_assert!(ALIGN_OF_MSRS >= ALIGN_OF_ENTRY); in handle_request()