pub struct TransformSummary {
pub static_imports: usize,
pub dynamic_imports: usize,
pub renamed_fields: usize,
}Expand description
Counters describing what the transform changed in a single file.
Fields§
§static_imports: usizeNumber of injected static dictionary imports.
dynamic_imports: usizeNumber of injected dynamic / fetch loader imports.
renamed_fields: usizeNumber of content field accesses rewritten to their short alias.
Implementations§
Source§impl TransformSummary
impl TransformSummary
Sourcepub fn changed_anything(&self) -> bool
pub fn changed_anything(&self) -> bool
Whether the transform touched the file at all.
Trait Implementations§
Source§impl Clone for TransformSummary
impl Clone for TransformSummary
impl Copy for TransformSummary
Source§impl Debug for TransformSummary
impl Debug for TransformSummary
Auto Trait Implementations§
impl Freeze for TransformSummary
impl RefUnwindSafe for TransformSummary
impl Send for TransformSummary
impl Sync for TransformSummary
impl Unpin for TransformSummary
impl UnsafeUnpin for TransformSummary
impl UnwindSafe for TransformSummary
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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