Skip to main content

hara_native/lang/protocol/
itopersistent.rs

1use super::IMutable;
2use hara_protocol_macros::hara_protocol;
3
4#[hara_protocol(
5    namespace = "std.protocol.itopersistent",
6    name = "IToPersistent",
7    parents = ["IMutable"]
8)]
9pub trait IToPersistent: IMutable {
10    type Persistent;
11
12    #[hara_method(value = "to-persistent", arity = 1)]
13    fn to_persistent(&mut self) -> Self::Persistent;
14}