[][src]Trait tectonic_io_base::AsIoProviderMut

pub trait AsIoProviderMut {
    pub fn as_ioprovider_mut(&mut self) -> &mut dyn IoProvider;
}

A hack to allow casting of Bundles to IoProviders.

The code that sets up the I/O stack is handed a reference to a Bundle trait object. For the actual I/O, it needs to convert this to an IoProvider trait object. According to StackExchange, the following pattern is the least-bad way to achieve the necessary upcasting.

Required methods

pub fn as_ioprovider_mut(&mut self) -> &mut dyn IoProvider[src]

Represent this value as an IoProvider trait object.

Loading content...

Implementors

impl<T: IoProvider> AsIoProviderMut for T[src]

Loading content...