Struct rspirv::mr::Loader
[−]
[src]
pub struct Loader { /* fields omitted */ }
The data representation loader.
Constructs a Module
from the module header and
instructions.
Methods
impl Loader
[src]
fn new() -> Loader
[src]
Creates a new empty loader.
fn module(self) -> Module
[src]
Returns the Module
under construction.
Trait Implementations
impl Default for Loader
[src]
impl Consumer for Loader
[src]
fn initialize(&mut self) -> ParseAction
[src]
Intialize the consumer.
fn finalize(&mut self) -> ParseAction
[src]
Finalize the consumer.
fn consume_header(&mut self, header: ModuleHeader) -> ParseAction
[src]
Consume the module header.
fn consume_instruction(&mut self, inst: Instruction) -> ParseAction
[src]
Consume the given instruction.