Struct makepad_shader_compiler::generate::BlockGenerator
source · 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 FnDef
§closure_site_info: Option<ClosureSiteInfo<'a>>
§shader_registry: &'a ShaderRegistry
§backend_writer: &'a dyn BackendWriter
§const_table_offset: Option<usize>
§indent_level: usize
§string: &'a mut String
Implementations§
source§impl<'a> BlockGenerator<'a>
impl<'a> BlockGenerator<'a>
pub fn generate_block(&mut self, block: &Block)
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for BlockGenerator<'a>
impl<'a> !Send for BlockGenerator<'a>
impl<'a> !Sync for BlockGenerator<'a>
impl<'a> Unpin for BlockGenerator<'a>
impl<'a> !UnwindSafe for BlockGenerator<'a>
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