Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • zbus zbus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 74
    • Issues 74
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 8
    • Merge requests 8
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • dbusdbus
  • zbuszbus
  • Merge requests
  • !375

zv: Broaden `Error` restriction on `TryFrom` bounds, implement `TryFrom<Value<'a>>` for `HashMap`

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Ian Douglas Scott requested to merge ids1024/zbus:try_from into main Aug 26, 2021
  • Overview 23
  • Commits 2
  • Pipelines 5
  • Changes 4
  • This allows conversion as long as the error type implements Into<crate::Error>, instead of only for crate::Error. In particular, infallible conversions now apply here.
  • HashMap already implemented TryFrom<OwnedValue>. Also implement TryFrom<Value<'a>>.

With both of these changes, #135 (closed) is fixed.

Edited Sep 07, 2021 by Ian Douglas Scott
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: try_from