Skip to main content

hara_native/lang/protocol/
ipointer.rs

1use hara_protocol_macros::hara_protocol;
2
3/// Identifies the evaluator context that owns pointer resolution.
4///
5/// Pointer descriptor fields are accessed through the ordinary collection
6/// protocols; they are deliberately not duplicated here.
7#[hara_protocol(namespace = "std.protocol.ipointer", name = "IPointer")]
8pub trait IPointer<C> {
9    #[hara_method(value = "ptr-context", arity = 1)]
10    fn pointer_context(&self) -> C;
11}