Skip to content

plug write! in format!? #86

Open
Open
@masklinn

Description

@masklinn

The format! idiom notes:

It is possible to build up strings using the push and push_str methods on a mutable String, or using its + operator. However, it is often more convenient to use format!, especially where there is a mix of literal and non-literal strings.

Using write! on a String may not be quite as terse as the latter or as efficient as the former, but it's a pretty good (and generally more readable) alternative. It does require having std::fmt::Write in scope.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-idiomArea: IdiomsC-enhancementCategory: Enhancements to contentC-needs discussionArea: Something that is not clear to everyone if it fixes something/adds valuable content

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions