Skip to main content

hara_native/lang/protocol/
ipeekfirst.rs

1use hara_protocol_macros::hara_protocol;
2
3#[hara_protocol(namespace = "std.protocol.ipeekfirst", name = "IPeekFirst")]
4pub trait IPeekFirst<E> {
5    #[hara_method(value = "peek-first", arity = 1)]
6    fn peek_first(&self) -> Option<E>;
7}