Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Options::width #521

Merged
merged 1 commit into from Oct 29, 2023
Merged

Add Options::width #521

merged 1 commit into from Oct 29, 2023

Conversation

9999years
Copy link
Contributor

@9999years 9999years commented Oct 18, 2023

This is a convenience method to set the width of the Options struct. I found it useful to have builder-style access to this property, and it matches some of the other provided methods.

Copy link
Owner

@mgeisler mgeisler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, makes sense!

@mgeisler
Copy link
Owner

Hi @9999years, thanks for improving the crate!

Over the years, I've been torn between going all in on the builder pattern and letting people configure the options using public fields — and as a result, we now have both 😄 However, I now lean more towards using a builder pattern throughout. Would you be up for making a PR which hides the fields and turns this into a "proper" builder?

@mgeisler mgeisler merged commit 75f983d into mgeisler:master Oct 29, 2023
25 checks passed
@github-actions github-actions bot mentioned this pull request Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants