pub enum SortMode {
Relevance,
Position,
FanIn,
FanOut,
Complexity,
NestingDepth,
AstComplexity,
}Expand description
Sorting mode for search results
Variants§
Relevance
Relevance-based scoring (default, LLM-friendly)
Position
Position-based ordering (faster, pure SQL ORDER BY)
FanIn
Sort by fan-in (incoming references) descending
FanOut
Sort by fan-out (outgoing calls) descending
Complexity
Sort by cyclomatic complexity descending
NestingDepth
Sort by AST nesting depth descending (deepest first)
AstComplexity
Sort by AST complexity (decision points) descending
Trait Implementations§
impl Copy for SortMode
impl StructuralPartialEq for SortMode
Auto Trait Implementations§
impl Freeze for SortMode
impl RefUnwindSafe for SortMode
impl Send for SortMode
impl Sync for SortMode
impl Unpin for SortMode
impl UnsafeUnpin for SortMode
impl UnwindSafe for SortMode
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<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