Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Composer implementation for reference types
The use case is to share the underlying Composer buffer between builders to avoid allocation, via a thread local variable for example. Without the reference type implements, the ownership could be transferred by memory swap operation, but that's not quite ideal. Plus some methods like MessageBuilder::from_target would drop the Composer on error, which makes it even difficult to share.
- Loading branch information