miden_node_proto/domain/
mod.rs1pub mod account;
2pub mod batch;
3pub mod block;
4pub mod digest;
5pub mod mempool;
6pub mod merkle;
7pub mod note;
8pub mod nullifier;
9pub mod proof_request;
10pub mod transaction;
11
12pub fn convert<T, From, To>(from: T) -> impl Iterator<Item = To>
16where
17 T: IntoIterator<Item = From>,
18 From: Into<To>,
19{
20 from.into_iter().map(Into::into)
21}
22
23pub fn try_convert<T, E, From, To>(from: T) -> impl Iterator<Item = Result<To, E>>
24where
25 T: IntoIterator<Item = From>,
26 From: TryInto<To, Error = E>,
27{
28 from.into_iter().map(TryInto::try_into)
29}