fitzgen / fitzgen/winliner

Consider making a `CowModuleBuilder` abstraction

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
29
Forks
2
PR merge metrics
No merged PRs in 30d

Description

> Maybe a nice abstraction here, and to make the `CowSection` constructors nicer per other comment while keeping this code clean too, would be a `CowModuleBuilder`: wrap the `Vec`, and have methods for `add_owned(...)` and `add_borrowed(...)`, and then `into_module()` or somesuch?

_Originally posted by @cfallin in https://github.com/fitzgen/winliner/pull/2#discussion_r1333598093_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.