pub enum IgnoreExportsUsedInFileConfig {
Bool(bool),
ByKind(IgnoreExportsUsedInFileByKind),
}Expand description
Value of the ignoreExportsUsedInFile config key: whether an export
referenced elsewhere in its own file is suppressed from unused-export.
Variants§
Bool(bool)
Blanket toggle: true suppresses any export with a same-file use,
regardless of kind. The default is false.
ByKind(IgnoreExportsUsedInFileByKind)
Knip-parity object form restricting the suppression to type-only exports.
Implementations§
Source§impl IgnoreExportsUsedInFileConfig
impl IgnoreExportsUsedInFileConfig
Sourcepub const fn is_enabled(self) -> bool
pub const fn is_enabled(self) -> bool
Whether any form of the same-file-use suppression is active (the bool
form is true, or either by-kind field is set).
Sourcepub const fn suppresses(self, is_type_only: bool) -> bool
pub const fn suppresses(self, is_type_only: bool) -> bool
Whether an export with a same-file use should be suppressed, given whether fallow classified it as type-only. The bool form suppresses regardless of kind; the by-kind form suppresses type-only exports only.
Trait Implementations§
impl Copy for IgnoreExportsUsedInFileConfig
Source§impl<'de> Deserialize<'de> for IgnoreExportsUsedInFileConfig
impl<'de> Deserialize<'de> for IgnoreExportsUsedInFileConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for IgnoreExportsUsedInFileConfig
Source§impl From<IgnoreExportsUsedInFileByKind> for IgnoreExportsUsedInFileConfig
impl From<IgnoreExportsUsedInFileByKind> for IgnoreExportsUsedInFileConfig
Source§fn from(value: IgnoreExportsUsedInFileByKind) -> Self
fn from(value: IgnoreExportsUsedInFileByKind) -> Self
Converts to this type from the input type.
Source§impl From<bool> for IgnoreExportsUsedInFileConfig
impl From<bool> for IgnoreExportsUsedInFileConfig
Source§impl JsonSchema for IgnoreExportsUsedInFileConfig
impl JsonSchema for IgnoreExportsUsedInFileConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for IgnoreExportsUsedInFileConfig
Auto Trait Implementations§
impl Freeze for IgnoreExportsUsedInFileConfig
impl RefUnwindSafe for IgnoreExportsUsedInFileConfig
impl Send for IgnoreExportsUsedInFileConfig
impl Sync for IgnoreExportsUsedInFileConfig
impl Unpin for IgnoreExportsUsedInFileConfig
impl UnsafeUnpin for IgnoreExportsUsedInFileConfig
impl UnwindSafe for IgnoreExportsUsedInFileConfig
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.