qubit-function 0.12.0

Functional programming traits and Box/Rc/Arc adapters for Rust, inspired by Java functional interfaces
Documentation
/*******************************************************************************
 *
 *    Copyright (c) 2025 - 2026 Haixing Hu.
 *
 *    SPDX-License-Identifier: Apache-2.0
 *
 *    Licensed under the Apache License, Version 2.0.
 *
 ******************************************************************************/

use qubit_function::{
    BoxPredicate,
    Predicate,
};

#[test]
fn test_constants_observable_behavior() {
    let predicate = BoxPredicate::new(|value: &i32| *value > 0);
    assert!(predicate.test(&1));
    assert!(!predicate.test(&0));
}