#[non_exhaustive]pub enum SimilarCodeExtractionSkipReason {
NonUtf8Path,
UnsupportedFileType,
DeclarationFile,
GeneratedSource,
SyntaxDiagnostic,
DeclarationWithoutBody,
NestedFunction,
UnsupportedFunctionForm,
InvalidSourceSpan,
SourceBytesPerFunctionLimit,
FunctionLimit,
TotalSourceBytesLimit,
}Expand description
Stable reason source work was omitted or recovered during extraction.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NonUtf8Path
The input path is not valid UTF-8.
UnsupportedFileType
The input is not a supported standalone JS or TS source file.
DeclarationFile
TypeScript declaration files contain no runtime function bodies.
GeneratedSource
A closed path or header rule classified the source as generated.
SyntaxDiagnostic
Oxc recovered from one or more syntax diagnostics.
DeclarationWithoutBody
A declaration or overload had no function body.
NestedFunction
Nested functions and callbacks are outside the first extraction semantics.
UnsupportedFunctionForm
A method, computed binding, or other unsupported function form was omitted.
InvalidSourceSpan
The AST span could not be sliced safely from the source.
SourceBytesPerFunctionLimit
A function source fragment exceeded its per-function byte limit.
FunctionLimit
The retained function limit was reached.
TotalSourceBytesLimit
The combined source-payload byte limit was reached.
Trait Implementations§
impl Copy for SimilarCodeExtractionSkipReason
impl Eq for SimilarCodeExtractionSkipReason
Source§impl Ord for SimilarCodeExtractionSkipReason
impl Ord for SimilarCodeExtractionSkipReason
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for SimilarCodeExtractionSkipReason
impl PartialOrd for SimilarCodeExtractionSkipReason
impl StructuralPartialEq for SimilarCodeExtractionSkipReason
Auto Trait Implementations§
impl Freeze for SimilarCodeExtractionSkipReason
impl RefUnwindSafe for SimilarCodeExtractionSkipReason
impl Send for SimilarCodeExtractionSkipReason
impl Sync for SimilarCodeExtractionSkipReason
impl Unpin for SimilarCodeExtractionSkipReason
impl UnsafeUnpin for SimilarCodeExtractionSkipReason
impl UnwindSafe for SimilarCodeExtractionSkipReason
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.