Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/servo/tests/unit/malloc_size_of/   (Firefox Browser Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 2 kB image not shown  

Quelle  lib.rs

  Sprache: Rust
 

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */


/**
```
extern crate malloc_size_of;
extern crate servo_arc;

fn sizeable<T: malloc_size_of::MallocSizeOf>() {}
fn shallow_sizeable<T: malloc_size_of::MallocShallowSizeOf>() {}
fn cloneable<T: Clone>() {}

fn main() {
    cloneable::<servo_arc::Arc<i32>>();
    cloneable::<std::sync::Arc<i32>>();
    cloneable::<std::rc::Rc<i32>>();
}
```
*/

pub fn imports_ok() {}

pub mod does_not_impl_malloc_size_of {
    /**
    ```compile_fail,E0277
    extern crate malloc_size_of;
    extern crate servo_arc;

    fn sizeable<T: malloc_size_of::MallocSizeOf>() {}

    fn main() {
        sizeable::<servo_arc::Arc<i32>>();
    }
    ```
    */

    pub fn servo_arc() {}

    /**
    ```compile_fail,E0277
    extern crate malloc_size_of;

    fn sizeable<T: malloc_size_of::MallocSizeOf>() {}

    fn main() {
        sizeable::<std::sync::Arc<i32>>();
    }
    ```
    */

    pub fn std_arc() {}

    /**
    ```compile_fail,E0277
    extern crate malloc_size_of;

    fn sizeable<T: malloc_size_of::MallocSizeOf>() {}

    fn main() {
        sizeable::<std::rc::Rc<i32>>();
    }
    ```
    */

    pub fn rc() {}
}

pub mod does_not_impl_malloc_shallow_size_of {
    /**
    ```compile_fail,E0277
    extern crate malloc_size_of;
    extern crate servo_arc;

    fn shallow_sizeable<T: malloc_size_of::MallocShallowSizeOf>() {}

    fn main() {
        shallow_sizeable::<servo_arc::Arc<i32>>();
    }
    ```
    */

    pub fn servo_arc() {}

    /**
    ```compile_fail,E0277
    extern crate malloc_size_of;

    fn shallow_sizeable<T: malloc_size_of::MallocShallowSizeOf>() {}

    fn main() {
        shallow_sizeable::<std::sync::Arc<i32>>();
    }
    ```
    */

    pub fn std_arc() {}

    /**
    ```compile_fail,E0277
    extern crate malloc_size_of;

    fn shallow_sizeable<T: malloc_size_of::MallocShallowSizeOf>() {}

    fn main() {
        shallow_sizeable::<std::rc::Rc<i32>>();
    }
    ```
    */

    pub fn rc() {}
}

Messung V0.5 in Prozent
C=96 H=100 G=97

¤ Dauer der Verarbeitung: 0.9 Sekunden  (vorverarbeitet am  2026-06-20) ¤

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