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
sourceimpl StructDef
impl StructDef
pub fn find_field(&self, ident: Ident) -> Option<&StructFieldDef>
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more