pub struct BlockGenerator<'a> {
    pub fn_def: &'a FnDef,
    pub closure_site_info: Option<ClosureSiteInfo<'a>>,
    pub shader_registry: &'a ShaderRegistry,
    pub backend_writer: &'a dyn BackendWriter,
    pub const_table_offset: Option<usize>,
    pub indent_level: usize,
    pub string: &'a mut String,
}

Fields

fn_def: &'a FnDefclosure_site_info: Option<ClosureSiteInfo<'a>>shader_registry: &'a ShaderRegistrybackend_writer: &'a dyn BackendWriterconst_table_offset: Option<usize>indent_level: usizestring: &'a mut String

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.