Skip to content

Value::try_into makes use of TryInto difficult #162

Closed
@djmitche

Description

@djmitche

I'd like to write some conversions for my own structs from instances of Value, and std::convert::TryFrom / TryInto are good choices for this. However, the existence of a try_into method on the struct, unrelated to these traits, shadows the trait method.

Could the try_into method be renamed into try_deserialize or something of the sort?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions