/// Checks the layout of the manifest struct.
///
/// Implemented as a function because using `offset_of!` at compile-time
/// requires a nightly compiler.
/// TODO(#6915): Convert this to a unit test after we start running rust tests during our builds.
Checks the layout of the manifest struct.
Implemented as a function because using `offset_of!` at compile-time
requires a nightly compiler.
TODO(#6915): Convert this to a unit test after we start running rust tests during our builds.
Checks the layout of the manifest struct . Implemented as a function because using ` offset_of! ` at compile - time requires a nightly compiler . TODO ( #6915 ) : Convert this to a unit test after we start running rust tests during our builds .
pub fn check_manifest_layout() {
    assert_eq!(offset_of!(Manifest, identifier), 0);
    assert_eq!(offset_of!(Manifest, signature), 4);
    assert_eq!(offset_of!(Manifest, image_length), 388);
    assert_eq!(offset_of!(Manifest, image_major_version), 392);
    assert_eq!(offset_of!(Manifest, image_minor_version), 396);
    assert_eq!(offset_of!(Manifest, image_timestamp), 400);
    assert_eq!(offset_of!(Manifest, exponent), 408);
    assert_eq!(offset_of!(Manifest, binding_value), 412);
    assert_eq!(offset_of!(Manifest, max_key_version), 444);
    assert_eq!(offset_of!(Manifest, modulus), 448);
    assert_eq!(size_of::<Manifest>(), MANIFEST_SIZE as usize);
}
pub fn check_manifest_layout ( ) { assert_eq ! ( offset_of ( Manifest identifier ) 0 ) ; assert_eq ! ( offset_of ( Manifest signature ) 4 ) ; assert_eq ! ( offset_of ( Manifest image_length ) 388 ) ; assert_eq ! ( offset_of ( Manifest image_major_version ) 392 ) ; assert_eq ! ( offset_of ( Manifest image_minor_version ) 396 ) ; assert_eq ! ( offset_of ( Manifest image_timestamp ) 400 ) ; assert_eq ! ( offset_of ( Manifest exponent ) 408 ) ; assert_eq ! ( offset_of ( Manifest binding_value ) 412 ) ; assert_eq ! ( offset_of ( Manifest max_key_version ) 444 ) ; assert_eq ! ( offset_of ( Manifest modulus ) 448 ) ; assert_eq ! ( size_of Manifest ( ) MANIFEST_SIZE as usize ) ; }
Checks the layout of the manifest struct.
Checks the layout of the manifest struct .