Home
last modified time | relevance | path

Searched refs:const_assert (Results 1 – 5 of 5) sorted by relevance

/external/crosvm/usb_util/src/
Dtypes.rs5 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()
/external/crosvm/data_model/src/
Dendian.rs35 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>());
/external/crosvm/assertions/src/
Dlib.rs41 macro_rules! const_assert { macro
/external/crosvm/vhost/src/
Dlib.rs18 use assertions::const_assert;
117 const_assert!(ALIGN_OF_MEMORY >= ALIGN_OF_REGION); in set_mem_table()
/external/crosvm/src/plugin/
Dvcpu.rs18 use assertions::const_assert;
677 const_assert!(ALIGN_OF_MSRS >= ALIGN_OF_ENTRY); in handle_request()