pub struct PatchProvided {
pub functions: BTreeMap<ModuleName, ExportSurface>,
pub specs: PerModuleFunctionSet,
}Expand description
What the patch’s added lines themselves provide per module. A
qualified call to an added or newly exported function is not
flagged, since the patch introduces or covers it (often in a
different file than the call). Where the module’s own export
surface is unreadable (-compile(export_all) and the like), a call
to any of its functions withholds rather than flags: the patch may
cover the callee in a way the scanner cannot see. A resolved call
whose -spec the patch rewrites is not shape-compared: post-apply,
both trees carry the patch’s version, so there is no pre-existing
drift to find.
Fields§
§functions: BTreeMap<ModuleName, ExportSurface>§specs: PerModuleFunctionSetTrait Implementations§
Source§impl Debug for PatchProvided
impl Debug for PatchProvided
Auto Trait Implementations§
impl Forget for PatchProvided
impl Freeze for PatchProvided
impl Move for PatchProvided
impl RefUnwindSafe for PatchProvided
impl Send for PatchProvided
impl Sync for PatchProvided
impl Unpin for PatchProvided
impl UnsafeUnpin for PatchProvided
impl UnwindSafe for PatchProvided
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