hara_native/lang/protocol/
iencodable.rs1use hara_protocol_macros::hara_protocol;
2
3#[hara_protocol(namespace = "std.protocol.iencodable", name = "IEncodable")]
4pub trait IEncodable<V> {
5 type Output;
6
7 #[hara_method(value = "encode-with", arity = 2)]
8 fn encode_with(&self, visitor: V) -> Self::Output;
9}