Trait mz_repr::proto::ProtoMapEntry
source · [−]pub trait ProtoMapEntry<K, V> {
fn from_rust<'a>(entry: (&'a K, &'a V)) -> Self;
fn into_rust(self) -> Result<(K, V), TryFromProtoError>;
}
Expand description
A trait that allows Self
to be used as an entry in a
Vec<Self>
representing a Rust *Map<K, V>
.