Skip to content

Outdated claims #57

Open
Open
@Conaclos

Description

@Conaclos

Hi!

The following claim is wrong:

For the most common pairs of values - &str and String, or &[u8] and Vec - this means that the entire enum is 4 words wide

Indeed, Rust performs niche optimizations for Vec and String.
This means that std::borow::Cow<str> has the same size as String (3 words).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions