Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/rust/rustix/src/   (Firefox Browser Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 890 B image not shown  

Quelle  static_assertions.rs

  Sprache: Rust
 

//! Workarounds for Rust 1.63 where some things in the `static_assertions`
//! crate do things that don't work in const contexts. We want to call them in
//! const contexts in Rust versions where that's supported so that problems are
//! caught at compile time, and fall back to dynamic asserts in Rust 1.63.

#![allow(unused_macros)]

macro_rules! assert_eq_size {
    ($x:ty, $y:ty) => {
        assert_eq!(core::mem::size_of::<$x>(), core::mem::size_of::<$y>());
    };
}

macro_rules! assert_eq_align {
    ($x:ty, $y:ty) => {
        assert_eq!(core::mem::align_of::<$x>(), core::mem::align_of::<$y>());
    };
}

macro_rules! const_assert_eq {
    ($x:expr, $y:expr) => {
        assert_eq!($x, $y);
    };
}

macro_rules! const_assert_ne {
    ($x:expr, $y:expr) => {
        assert_ne!($x, $y);
    };
}

macro_rules! const_assert {
    ($x:expr) => {
        assert!($x);
    };
}

Messung V0.5 in Prozent
C=83 H=97 G=90

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet am  2026-06-18) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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.