hara-native 0.1.21

HAL-free native host runtime and package launcher for Hara
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use hara_protocol_macros::hara_protocol;

#[hara_protocol(
    namespace = "std.protocol.imatch",
    name = "IMatch",
    availability = "capability-gated",
    capability = "native-runtime-protocols"
)]
pub trait IMatch {
    type Value;
    type Output;

    #[hara_method(value = "match-value", arity = 2)]
    fn match_value(&self, value: Self::Value) -> Self::Output;
}