Skip to main content

snapshot_reg_fn_ident

Function snapshot_reg_fn_ident 

Source
pub(crate) fn snapshot_reg_fn_ident(ident: &Ident) -> Ident
Expand description

__mx_snapshot_reg_<crate>_<Ident>_<hash> — the registration fn of an ExternalPtr type’s carrier class (#2186).

Every non-generic #[derive(ExternalPtr)] type emits one, and two types of one crate may share an ident in different modules, so the symbol carries a hash of where the type is defined: the source file’s name (not its path, which differs between the host build and a webR build of the same sources), line and column.