// Copyright (c) 2025 Mullvad VPN AB. All rights reserved.
// SPDX-License-Identifier: BSD-3-Clause
/// Check that the size of type `T` is `size`. If not, panic.
////// Returns `size` for convenience.
pubconstfnsize_must_be<T>(size:usize)->usize{ifsize_of::<T>()== size {
size
}else{panic!("Size of T is wrong!")}}