1 2 3 4 5 6 7
use hara_protocol_macros::hara_protocol; #[hara_protocol(namespace = "std.protocol.inth", name = "INth")] pub trait INth<E> { #[hara_method(value = "nth", arity = 2, whole_wasm)] fn nth(&self, index: usize) -> Option<&E>; }