Skip to content
Discussion options

You must be logged in to vote

Then it would mean that one can only use primitive types assigned to the default?

Anything that implements Display can use default_value_t. We insert defaults very early in the parsing process when everything is an OsString and so we need some way to convert the typed value to an OsString and Display / ToString is the most universal way to do so.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@iampi31415
Comment options

@epage
Comment options

Answer selected by iampi31415
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants