Function domain::base::wire::compose_vec
source ยท pub fn compose_vec(
op: impl FnOnce(&mut Vec<u8>) -> Result<(), Infallible>,
) -> Vec<u8>
Expand description
Composes something into a Vec<u8>
.
The actual composing happens in the provided closure. This function is mostly useful in testing so you can construct this vec directly inside an asserting.