pub struct SimilarCodeOptions {
pub analysis: AnalysisOptions,
pub threshold: Option<f64>,
pub min_lines: Option<usize>,
pub top: Option<usize>,
pub files: Vec<PathBuf>,
/* private fields */
}Expand description
Options for local advisory similar-code discovery.
Fields§
§analysis: AnalysisOptionsShared project, config, cache, diff, and workspace options.
threshold: Option<f64>Model-specific cosine floor. None uses similarCode.threshold.
min_lines: Option<usize>Minimum source lines per function. None uses
similarCode.minLines.
top: Option<usize>Cap on displayed candidates after the full bounded comparison.
files: Vec<PathBuf>Restrict work and reported pairs to those where at least one side matches one of these project-relative files. Deterministic background context is retained only within the bounded scoped comparison budget.
Trait Implementations§
Source§impl Clone for SimilarCodeOptions
impl Clone for SimilarCodeOptions
Source§impl Debug for SimilarCodeOptions
impl Debug for SimilarCodeOptions
Auto Trait Implementations§
impl Freeze for SimilarCodeOptions
impl RefUnwindSafe for SimilarCodeOptions
impl Send for SimilarCodeOptions
impl Sync for SimilarCodeOptions
impl Unpin for SimilarCodeOptions
impl UnsafeUnpin for SimilarCodeOptions
impl UnwindSafe for SimilarCodeOptions
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> 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