JosephTLyons / JosephTLyons/text_align_rust

Allow for customizing the fill character (default to space)

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

Description

We may want to introduce some mechanism to allow this to default to the space character, but since Rust doesn't have default parameters, this might involve making a struct and forcing the user to use that, which we do not want. We want the user to be able to call the methods directly on strings, so it might just be best to force them to supply the fill char on each function call.

Research this a bit, ask Rust Discord server

We might just want to double each method in the trait impl and rename the copy as "_with_fill_character" - see [branch](https://github.com/JosephTLyons/text_align_rust/tree/Add-fill-character-option)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.