#[non_exhaustive]pub enum SimilarCodeExtractionSkipReason {
Show 13 variants
NonUtf8Path,
UnsupportedFileType,
DeclarationFile,
GeneratedSource,
SyntaxDiagnostic,
NestingLimit,
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
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.
NestingLimit
The source nests brackets too deep to parse without a stack overflow.
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§
Source§impl Clone for SimilarCodeExtractionSkipReason
impl Clone for SimilarCodeExtractionSkipReason
Source§fn clone(&self) -> SimilarCodeExtractionSkipReason
fn clone(&self) -> SimilarCodeExtractionSkipReason
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SimilarCodeExtractionSkipReason
impl Eq for SimilarCodeExtractionSkipReason
Source§impl Ord for SimilarCodeExtractionSkipReason
impl Ord for SimilarCodeExtractionSkipReason
Source§fn cmp(&self, other: &SimilarCodeExtractionSkipReason) -> Ordering
fn cmp(&self, other: &SimilarCodeExtractionSkipReason) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
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> ⓘ
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> ⓘ
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