// Ensure that the source and destination types are both primitive integer // types and the same size, and then bitcast.
macro_rules! bitcast {
($x:expr) => {{ iffalse { // Ensure the source and destinations are primitive integer types. let _ = !$x; let _ = $x as u8; 0
} elseiffalse { // Ensure that the source and destinations are the same size. // SAFETY: This code is under an `if false`. #[allow(unsafe_code, unused_unsafe, clippy::useless_transmute)] unsafe {
::core::mem::transmute($x)
}
} else { // Do the conversion.
$x as _
}
}};
}
/// Return a [`bitcast`] of the value of `$x.bits()`, where `$x` is a /// `bitflags` type.
macro_rules! bitflags_bits {
($x:expr) => {{
bitcast!($x.bits())
}};
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-06-18)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.