MCPcopy Create free account
hub / github.com/Shizcow/hotpatch / HotpatchExport

Class HotpatchExport

hotpatch/src/export.rs:5–9  ·  view source on GitHub ↗

Created by [`#[patch]`](crate::patch). Internal use only. Creates a `#[no_mangle] pub static` instance to be imported in another binary by [`Patchable`](crate::Patchable) methods.

Source from the content-addressed store, hash-verified

3/// Creates a `#[no_mangle] pub static` instance to be imported in another
4/// binary by [`Patchable`](crate::Patchable) methods.
5pub struct HotpatchExport<T: 'static> {
6 pub symbol: &'static str,
7 pub sig: &'static str,
8 pub ptr: T,
9}
10
11#[doc(hidden)]
12impl<T: 'static> HotpatchExport<T> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected