Struct rustc_codegen_llvm::coverageinfo::mapgen::GlobalFileTable
source · struct GlobalFileTable {
raw_file_table: FxIndexSet<Symbol>,
}Expand description
Maps “global” (per-CGU) file ID numbers to their underlying filenames.
Fields§
§raw_file_table: FxIndexSet<Symbol>This “raw” table doesn’t include the working dir, so a filename’s global ID is its index in this set plus one.
Implementations§
source§impl GlobalFileTable
impl GlobalFileTable
fn new(all_file_names: impl IntoIterator<Item = Symbol>) -> Self
fn global_file_id_for_file_name(&self, file_name: Symbol) -> u32
fn make_filenames_buffer(&self, tcx: TyCtxt<'_>) -> Vec<u8>
Auto Trait Implementations§
impl RefUnwindSafe for GlobalFileTable
impl Send for GlobalFileTable
impl Sync for GlobalFileTable
impl Unpin for GlobalFileTable
impl UnwindSafe for GlobalFileTable
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 56 bytes