struct NeedsIdsCollector<'a> {
    cx: &'a Context,
    module: &'a Module,
    ext_inst_imports: BTreeSet<&'a str>,
    debug_strings: BTreeSet<&'a str>,
    globals: IndexSet<Global, BuildHasherDefault<FxHasher>>,
    data_inst_forms_seen: IndexSet<DataInstForm, BuildHasherDefault<FxHasher>>,
    global_vars_seen: IndexSet<GlobalVar, BuildHasherDefault<FxHasher>>,
    funcs: IndexSet<Func, BuildHasherDefault<FxHasher>>,
}

Fields§

§cx: &'a Context§module: &'a Module§ext_inst_imports: BTreeSet<&'a str>§debug_strings: BTreeSet<&'a str>§globals: IndexSet<Global, BuildHasherDefault<FxHasher>>§data_inst_forms_seen: IndexSet<DataInstForm, BuildHasherDefault<FxHasher>>§global_vars_seen: IndexSet<GlobalVar, BuildHasherDefault<FxHasher>>§funcs: IndexSet<Func, BuildHasherDefault<FxHasher>>

Implementations§

source§

impl<'a> NeedsIdsCollector<'a>

source

fn alloc_ids<E>( self, alloc_id: impl FnMut() -> Result<Id, E> ) -> Result<AllocatedIds<'a>, E>

Trait Implementations§

source§

impl Visitor<'_> for NeedsIdsCollector<'_>

source§

fn visit_attr_set_use(&mut self, attrs: AttrSet)

source§

fn visit_type_use(&mut self, ty: Type)

source§

fn visit_const_use(&mut self, ct: Const)

source§

fn visit_data_inst_form_use(&mut self, data_inst_form: DataInstForm)

source§

fn visit_global_var_use(&mut self, gv: GlobalVar)

source§

fn visit_func_use(&mut self, func: Func)

source§

fn visit_spv_module_debug_info(&mut self, debug_info: &ModuleDebugInfo)

source§

fn visit_attr(&mut self, attr: &Attr)

source§

fn visit_data_inst_form_def(&mut self, data_inst_form_def: &DataInstFormDef)

source§

fn visit_spv_dialect(&mut self, _dialect: &Dialect)

source§

fn visit_import(&mut self, _import: &Import)

source§

fn visit_module(&mut self, module: &'a Module)

source§

fn visit_module_dialect(&mut self, dialect: &'a ModuleDialect)

source§

fn visit_module_debug_info(&mut self, debug_info: &'a ModuleDebugInfo)

source§

fn visit_attr_set_def(&mut self, attrs_def: &'a AttrSetDef)

source§

fn visit_type_def(&mut self, ty_def: &'a TypeDef)

source§

fn visit_const_def(&mut self, ct_def: &'a ConstDef)

source§

fn visit_global_var_decl(&mut self, gv_decl: &'a GlobalVarDecl)

source§

fn visit_func_decl(&mut self, func_decl: &'a FuncDecl)

source§

fn visit_control_region_def( &mut self, func_at_control_region: FuncAt<'a, ControlRegion> )

source§

fn visit_control_node_def( &mut self, func_at_control_node: FuncAt<'a, ControlNode> )

source§

fn visit_data_inst_def(&mut self, data_inst_def: &'a DataInstDef)

source§

fn visit_value_use(&mut self, v: &'a Value)

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for NeedsIdsCollector<'a>

§

impl<'a> !Send for NeedsIdsCollector<'a>

§

impl<'a> !Sync for NeedsIdsCollector<'a>

§

impl<'a> Unpin for NeedsIdsCollector<'a>

§

impl<'a> !UnwindSafe for NeedsIdsCollector<'a>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.