Skip to content

Add .get_ref() / .get_mut() for Writer<W> #566

@martsokha

Description

@martsokha

In my case, I wrap the inner of quick_xml::Writer<W> into another struct that implements std::io::Write.
So I end up with quick_xml::Writer<my::Writer<W>>.

Currently, it's possible to retrieve the &mut W via .inner(), but not &W.
An example of such a method in the Rust Standard Library: std::io::BufWriter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions