pub struct FrameworkConfigExports { /* private fields */ }Expand description
Framework config exports, by root-relative file path.
A framework plugin marks some exports as used by the framework, for
example export const revalidate = 60 in a Next.js page. A mutant in such
an export changes framework config, not tested logic, so the plan prunes
it. Mutants inside a function in the export are not pruned.
Implementations§
Source§impl FrameworkConfigExports
impl FrameworkConfigExports
Sourcepub fn insert(&mut self, file: impl Into<String>, export: impl Into<String>)
pub fn insert(&mut self, file: impl Into<String>, export: impl Into<String>)
Records that the framework uses export of the root-relative file.
Sourcepub fn insert_config_file(&mut self, file: impl Into<String>)
pub fn insert_config_file(&mut self, file: impl Into<String>)
Records that the root-relative file is a tool config file. The tool
reads its default export, and a top-level module.exports = ...
statement counts as that default export.
Sourcepub fn is_config_file(&self, file: &str) -> bool
pub fn is_config_file(&self, file: &str) -> bool
True when Self::insert_config_file recorded the root-relative
file.
Trait Implementations§
Source§impl Clone for FrameworkConfigExports
impl Clone for FrameworkConfigExports
Source§impl Debug for FrameworkConfigExports
impl Debug for FrameworkConfigExports
Source§impl Default for FrameworkConfigExports
impl Default for FrameworkConfigExports
impl Eq for FrameworkConfigExports
Source§impl PartialEq for FrameworkConfigExports
impl PartialEq for FrameworkConfigExports
impl StructuralPartialEq for FrameworkConfigExports
Auto Trait Implementations§
impl Freeze for FrameworkConfigExports
impl RefUnwindSafe for FrameworkConfigExports
impl Send for FrameworkConfigExports
impl Sync for FrameworkConfigExports
impl Unpin for FrameworkConfigExports
impl UnsafeUnpin for FrameworkConfigExports
impl UnwindSafe for FrameworkConfigExports
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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