Struct cranelift_codegen::write::PlainWriter
source · [−]pub struct PlainWriter;
Expand description
A PlainWriter
that doesn’t decorate the function.
Trait Implementations
sourceimpl FuncWriter for PlainWriter
impl FuncWriter for PlainWriter
sourcefn write_instruction(
&mut self,
w: &mut dyn Write,
func: &Function,
aliases: &SecondaryMap<Value, Vec<Value>>,
inst: Inst,
indent: usize
) -> Result
fn write_instruction(
&mut self,
w: &mut dyn Write,
func: &Function,
aliases: &SecondaryMap<Value, Vec<Value>>,
inst: Inst,
indent: usize
) -> Result
Write the given inst
to w
.
sourcefn write_block_header(
&mut self,
w: &mut dyn Write,
func: &Function,
block: Block,
indent: usize
) -> Result
fn write_block_header(
&mut self,
w: &mut dyn Write,
func: &Function,
block: Block,
indent: usize
) -> Result
Write the basic block header for the current function.
sourcefn write_preamble(
&mut self,
w: &mut dyn Write,
func: &Function
) -> Result<bool, Error>
fn write_preamble(
&mut self,
w: &mut dyn Write,
func: &Function
) -> Result<bool, Error>
Write the preamble to w
. By default, this uses write_entity_definition
.
sourcefn super_preamble(
&mut self,
w: &mut dyn Write,
func: &Function
) -> Result<bool, Error>
fn super_preamble(
&mut self,
w: &mut dyn Write,
func: &Function
) -> Result<bool, Error>
Default impl of write_preamble
Auto Trait Implementations
impl RefUnwindSafe for PlainWriter
impl Send for PlainWriter
impl Sync for PlainWriter
impl Unpin for PlainWriter
impl UnwindSafe for PlainWriter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more