Skip to main content

Module borrowed

Module borrowed 

Source
Expand description

Emit Rust source for the borrowed flavor of a MessageSpec.

This module mirrors the structure of emit/owned.rs. Strings become &'a str, bytes become &'a [u8], the struct carries a 'a lifetime, DecodeBorrow<'de> replaces Decode<'de>, and to_owned() bridges to the matching owned type.