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 type-specific write methods to the StructWriter trait #687

Open
zslayton opened this issue Dec 8, 2023 · 0 comments
Open

Add type-specific write methods to the StructWriter trait #687

zslayton opened this issue Dec 8, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@zslayton
Copy link
Contributor

zslayton commented Dec 8, 2023

pub trait StructWriter {
    /// Writes a struct field using the provided name/value pair.
    fn write<A: AsRawSymbolTokenRef, V: WriteAsIon>(
        &mut self,
        name: A,
        value: V,
    ) -> IonResult<&mut Self>;
   
     // TODO: 
     // fn write_null<A: AsRawSymbolTokenRef>(&mut self, name: A, value: IonType) -> IonResult<()>;
     // fn write_bool<A: AsRawSymbolTokenRef>(&mut self, name: A, value: bool) -> IonResult<()>;
     // ...etc.
}
@zslayton zslayton added the bug Something isn't working label Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant