Skip to content

Add type definition example to the manual, consider changing the term to "type alias". #9266

Closed
@nejucomo

Description

@nejucomo

The Type Definitions section of the Manual would benefit from some code examples, especially those that clarify how traits and impls interact with the new name.

I find the term "type definition" confusing because this section seems to be describing what I think of as "type aliases". Aren't enum and struct also examples of "type definitions"? If so, is it worth changing this terminology?

Activity

nejucomo

nejucomo commented on Sep 17, 2013

@nejucomo
Author

Here are some relevant examples thanks to @Kimundi.

alexcrichton

alexcrichton commented on Aug 13, 2014

@alexcrichton
Member
steveklabnik

steveklabnik commented on Aug 13, 2014

@steveklabnik
Member

Yeah, I'm not sure what the right terminology is here. Hmm.

steveklabnik

steveklabnik commented on Dec 8, 2014

@steveklabnik
Member

@aturon what do you think?

aturon

aturon commented on Dec 8, 2014

@aturon
Member

+1 for "type alias" -- much clearer.

added a commit that references this issue on Dec 11, 2014
38d2909
added 5 commits that reference this issue on Dec 12, 2014

rollup merge of rust-lang#19746: steveklabnik/gh9266

66dd618

rollup merge of rust-lang#19746: steveklabnik/gh9266

39497fa

rollup merge of rust-lang#19746: steveklabnik/gh9266

8404ea6
added a commit that references this issue on Nov 29, 2018
7aec7ed
added a commit that references this issue on Aug 11, 2022

Auto merge of rust-lang#9266 - alex-semenyuk:cast_abs_to_unsigned_par…

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @steveklabnik@alexcrichton@nejucomo@aturon

      Issue actions

        Add type definition example to the manual, consider changing the term to "type alias". · Issue #9266 · rust-lang/rust