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

Build ppv2 headers to write #12

Closed
misalcedo opened this issue Dec 25, 2021 · 3 comments
Closed

Build ppv2 headers to write #12

misalcedo opened this issue Dec 25, 2021 · 3 comments
Labels
wontfix This will not be worked on

Comments

@misalcedo
Copy link
Owner

misalcedo commented Dec 25, 2021

The goal is to make writer an enum of either a vec or box dyn write.

Then to create a from impl for write, create a new with builder method, and expose the write header method as having arguments.

Finally flush the writer in build

@misalcedo
Copy link
Owner Author

The formatter for implementing std::fmt traits is the closest thing to what we care about in Writer:

pub struct Formatter<'a> {
    flags: u32,
    fill: char,
    align: rt::v1::Alignment,
    width: Option<usize>,
    precision: Option<usize>,

    buf: &'a mut (dyn Write + 'a),
}

@stale
Copy link

stale bot commented Mar 21, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Mar 21, 2022
@stale
Copy link

stale bot commented Mar 29, 2022

This issue has been automatically closed because it has not had recent activity. You may re-open the issue if it is still relevant.

@stale stale bot closed this as completed Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant