Make it easier to create a Value from owned or erased external types #339
No reviewers
Labels
No labels
bug
duplicate
easy
enhancement
help wanted
invalid
question
rfc
structured-logging
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-rust-lang/log!339
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/value-slot"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR allows consumers to work around
Value's required lifetime constraints in two ways:Primitivetype is all about.FillandSlottypes are all about.The
FillAPI is a more advanced initialization strategy (it's actually a kind of visitor that just tries very hard to look like initialization), so it isn't exported from thelog::kvmodule. Instead, this PR makes thevaluemodule public and leavesFillandSlotin there. We need something like this to be able to translate a&'kvs dyn tracing::Valueinto alog::kv::Value<'kvs>.I'll be a good citizen and add some tests for
Fill...