pub trait Emit {
// Required methods
fn name(&self) -> Option<Symbol>;
fn output_type(&self, mode: OutputMode) -> OutputType;
fn write_to<W: Writer>(
&self,
writer: W,
mode: OutputMode,
_session: &Session,
) -> Result<()>;
}Required Methods§
Sourcefn output_type(&self, mode: OutputMode) -> OutputType
fn output_type(&self, mode: OutputMode) -> OutputType
The output type associated with this item and the given mode
Sourcefn write_to<W: Writer>(
&self,
writer: W,
mode: OutputMode,
_session: &Session,
) -> Result<()>
fn write_to<W: Writer>( &self, writer: W, mode: OutputMode, _session: &Session, ) -> Result<()>
Write this item to the given std::io::Write handle, using mode to determine the output
type
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".