New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mapping a newtype to its underlying type #483

Closed
jonysy opened this Issue Oct 19, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@jonysy

jonysy commented Oct 19, 2016

Is there a way to map a newtype to its underlying type?

Example:

struct PostId(i32);

struct Post {
    id: PostId, // == `i32` when using diesel
    title: String,
}

@jonysy jonysy changed the title from Mapping newtypes to underlying types to Mapping a newtype to its underlying type Oct 19, 2016

@sgrif

This comment has been minimized.

Member

sgrif commented Oct 19, 2016

No, this isn't possible at the moment. #429 goes in that direction, but we're not sure if it's the direction we will take.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment