pub struct InstanceWriter<W> { /* private fields */ }Expand description
The writer for XBRL instance documents.
Implementations§
Source§impl<W: Write> InstanceWriter<W>
impl<W: Write> InstanceWriter<W>
pub fn new(writer: Writer<W>, is_xbrl_root: bool) -> Self
Sourcepub fn into_inner(self) -> W
pub fn into_inner(self) -> W
Consume the writer and return the underlying writer.
Sourcepub fn write(&mut self, instance: &InstanceDocument) -> Result<()>
pub fn write(&mut self, instance: &InstanceDocument) -> Result<()>
Serialize InstanceDocument to an XBRL XML document.
When xbrl_root is true, the XML declaration is omitted (e.g. when embedding
the XBRL element inside an outer document).
Auto Trait Implementations§
impl<W> Freeze for InstanceWriter<W>where
W: Freeze,
impl<W> RefUnwindSafe for InstanceWriter<W>where
W: RefUnwindSafe,
impl<W> Send for InstanceWriter<W>where
W: Send,
impl<W> Sync for InstanceWriter<W>where
W: Sync,
impl<W> Unpin for InstanceWriter<W>where
W: Unpin,
impl<W> UnsafeUnpin for InstanceWriter<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for InstanceWriter<W>where
W: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more