Closed
Description
The std
library can be confusing, especially if you haven't used them yet. Add a how to read the std library section. It should do:
- Should be near the beginning
- There is no global list of methods available on a type. They are generally grouped by traits the type has available.
type
Ext is a common convention for where the most important methods go.- This is because the methods are implemented by the std library and aren't
built-in
- If the type is
built-in
then you cannot extend it fromstd
. So you need a new trait. That's whytype
Ext are there.
- This is because the methods are implemented by the std library and aren't
- To use a
trait
, you can examine theimplementors
to determine which types have that ability. - A
type
which impementsDeref
will have methods available from non-obvious sources. This is detailed on reddit
[EDITS]
- changed
core
tobuilt-in
- Added
Deref
bullet
Metadata
Metadata
Assignees
Labels
No labels