Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/rust/macho-unwind-info/src/raw/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Quelle  unaligned.rs   Sprache: Rust

 

use std::fmt::Debug;

use zerocopy_derive::*;

/// An unaligned little-endian `u32` value.
#[derive(
    Unaligned,
    FromBytes,
    KnownLayout,
    Immutable,
    Default,
    Copy,
    Clone,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash,
)]
#[repr(transparent)]
pub struct U32([u8; 4]);

impl From<u32> for U32 {
    fn from(n: u32) -> Self {
        U32(n.to_le_bytes())
    }
}

impl From<U32> for u32 {
    fn from(n: U32) -> Self {
        u32::from_le_bytes(n.0)
    }
}

impl Debug for U32 {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        u32::fmt(&(*self).into(), f)
    }
}

/// An unaligned little-endian `u16` value.
#[derive(
    Unaligned,
    FromBytes,
    KnownLayout,
    Immutable,
    Default,
    Copy,
    Clone,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash,
)]
#[repr(transparent)]
pub struct U16([u8; 2]);

impl From<u16> for U16 {
    fn from(n: u16) -> Self {
        U16(n.to_le_bytes())
    }
}

impl From<U16> for u16 {
    fn from(n: U16) -> Self {
        u16::from_le_bytes(n.0)
    }
}

impl Debug for U16 {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        u16::fmt(&(*self).into(), f)
    }
}

Messung V0.5 in Prozent
C=98 H=100 G=98

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet am  2026-10-02) ¤

*© 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.