Closed
Description
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?
Metadata
Metadata
Assignees
Labels
No labels
Activity
nejucomo commentedon Sep 17, 2013
Here are some relevant examples thanks to @Kimundi.
alexcrichton commentedon Aug 13, 2014
cc @steveklabnik
steveklabnik commentedon Aug 13, 2014
Yeah, I'm not sure what the right terminology is here. Hmm.
steveklabnik commentedon Dec 8, 2014
@aturon what do you think?
aturon commentedon Dec 8, 2014
+1 for "type alias" -- much clearer.
reference: type definition -> type alias
rollup merge of rust-lang#19746: steveklabnik/gh9266
rollup merge of rust-lang#19746: steveklabnik/gh9266
rollup merge of rust-lang#19746: steveklabnik/gh9266
reference: type definition -> type alias
Auto merge of rust-lang#9266 - alex-semenyuk:cast_abs_to_unsigned_par…