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
Source§fn clone(&self) -> RenderFanInComponent
fn clone(&self) -> RenderFanInComponent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more