这是indexloc提供的服务,不要输入任何密码
Skip to content

An Example of Dynamically Sized Types Are Trait Objects, Not Traits #4533

@zehata

Description

@zehata

URL to the section(s) of the book with this problem:
https://doc.rust-lang.org/book/ch20-03-advanced-types.html#dynamically-sized-types-and-the-sized-trait

Description of the problem:

In fact, you’ve seen this before but with a different dynamically sized type: traits. Every trait is a dynamically sized type we can refer to by using the name of the trait.

From the context of the paragraph it appears that the dynamically sized type it is talking about is trait objects rather than traits.

Suggested fix:

- sized type: traits. Every trait is a dynamically sized type we can refer to by
+ sized type: trait objects. Every trait object is a dynamically sized type we can refer to by

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions