Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/rust/clubcard-crlite/examples/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 999 B image not shown  

Quelle  inspect.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 http://mozilla.org/MPL/2.0/. */


use clubcard_crlite::CRLiteClubcard;
use std::env::args;
use std::path::PathBuf;
use std::process::ExitCode;

fn parse_args() -> Option<PathBuf> {
    let mut args = args().map(PathBuf::from);
    let _name = args.next()?;
    args.next()
}

fn main() -> std::process::ExitCode {
    let Some(filter_path) = parse_args() else {
        eprintln!("Usage: {} <filter>", args().next().unwrap());
        return ExitCode::FAILURE;
    };

    let Ok(filter_bytes) = std::fs::read(&filter_path) else {
        eprintln!("Could not read filter");
        return ExitCode::FAILURE;
    };

    let Ok(filter) = CRLiteClubcard::from_bytes(&filter_bytes) else {
        eprintln!("Could not parse filter");
        return ExitCode::FAILURE;
    };

    println!("{}", filter);

    ExitCode::SUCCESS
}

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

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

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