Struct makepad_shader_compiler::shader_ast::StructDef
source · pub struct StructDef {
pub span: TokenSpan,
pub struct_refs: RefCell<Option<BTreeSet<StructPtr>>>,
pub fields: Vec<StructFieldDef>,
pub methods: Vec<FnPtr>,
}
Fields§
§span: TokenSpan
§struct_refs: RefCell<Option<BTreeSet<StructPtr>>>
§fields: Vec<StructFieldDef>
§methods: Vec<FnPtr>
Implementations§
source§impl StructDef
impl StructDef
pub fn find_field(&self, ident: Ident) -> Option<&StructFieldDef>
source§impl StructDef
impl StructDef
pub fn init_analysis(&self)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for StructDef
impl !Send for StructDef
impl !Sync for StructDef
impl Unpin for StructDef
impl UnwindSafe for StructDef
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