pub struct RenderFanInComponent {
pub file: PathBuf,
pub component: String,
pub render_sites: u32,
pub distinct_parents: u32,
}Expand description
One component’s render fan-in detail: how many JSX render SITES target it and how many DISTINCT parent components render it.
Fields§
§file: PathBufAbsolute path of the file declaring the component.
component: StringThe component name.
render_sites: u32Total JSX render SITES that resolve to this component across the project (each capitalized / member JSX tag is one site). SECONDARY context (“incl. repeats”): a single parent rendering one child five times is five sites but one distinct parent, so render_sites overcounts blast radius.
distinct_parents: u32Distinct (parent_file, parent_component) keys that render this
component. The HEADLINE blast-radius axis: the honest count of distinct
render LOCATIONS, the percentiled distribution analogue of “distinct
importers”.
Trait Implementations§
Source§impl Clone for RenderFanInComponent
impl Clone for RenderFanInComponent
Auto Trait Implementations§
impl Freeze for RenderFanInComponent
impl RefUnwindSafe for RenderFanInComponent
impl Send for RenderFanInComponent
impl Sync for RenderFanInComponent
impl Unpin for RenderFanInComponent
impl UnsafeUnpin for RenderFanInComponent
impl UnwindSafe for RenderFanInComponent
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