pub struct Writer { /* private fields */ }
Implementations§
Source§impl Writer
impl Writer
pub fn new(options: &Options<'_>) -> Result<Self, Error>
pub fn write( &mut self, ir_module: &Module, info: &ModuleInfo, pipeline_options: Option<&PipelineOptions>, debug_info: &Option<DebugInfo<'_>>, words: &mut Vec<Word>, ) -> Result<(), Error>
Sourcepub const fn get_capabilities_used(&self) -> &FastIndexSet<Capability>
pub const fn get_capabilities_used(&self) -> &FastIndexSet<Capability>
Return the set of capabilities the last module written used.
pub fn decorate_non_uniform_binding_array_access( &mut self, id: Word, ) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for Writer
impl RefUnwindSafe for Writer
impl Send for Writer
impl Sync for Writer
impl Unpin for Writer
impl UnwindSafe for Writer
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