Skip to content

trait TryInto for FieldValue #97

Answered by gftea
alllel asked this question in Q&A
May 3, 2023 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

TryInto trait contract is to consume the type, for type safety, cannot use reference
get is not supposed to return reference, user need to clone it explictly, which is better than implicitly doing clone at cost internally

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@alllel
Comment options

@alllel
Comment options

@gftea
Comment options

Answer selected by alllel
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