Skip to content

Conversation

@hecsalazarf
Copy link
Contributor

I'm submitting a feature.

Description

Trait implementations on the adapters:

  • From<Adapter> for Uuid
  • AsRef<Uuid> for Adapter
  • Borrow<Uuid> for Adapter

An Adapter::into_inner method that takes self and returns a Uuid.

Motivation

Open issue #482

Tests

All tests pass.

Related Issue(s)

Closes #482


impl<$a> AsRef<Uuid> for $T<$a> {
#[inline]
fn as_ref(&self) -> &$a Uuid {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed lifetimes to support rust 1.34.0

@KodrAus
Copy link
Member

KodrAus commented Jan 16, 2021

bors r+

@bors
Copy link
Contributor

bors bot commented Jan 16, 2021

Build succeeded:

@bors bors bot merged commit 54d7bec into uuid-rs:master Jan 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow access of inner Uuid for Hyphenated, Simple, Urn

2 participants