pub struct CodeRepetitionConfig {
pub enabled: bool,
pub similarity_threshold: f64,
pub min_block_lines: usize,
}Expand description
Reserved for explicit aggressive code-repetition shaping. It remains off by default because a read-cache baseline is required to prove repetition.
Fields§
§enabled: bool§similarity_threshold: f64§min_block_lines: usizeTrait Implementations§
Source§impl Clone for CodeRepetitionConfig
impl Clone for CodeRepetitionConfig
Source§fn clone(&self) -> CodeRepetitionConfig
fn clone(&self) -> CodeRepetitionConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CodeRepetitionConfig
impl Debug for CodeRepetitionConfig
Source§impl Default for CodeRepetitionConfig
impl Default for CodeRepetitionConfig
Source§impl<'de> Deserialize<'de> for CodeRepetitionConfigwhere
CodeRepetitionConfig: Default,
impl<'de> Deserialize<'de> for CodeRepetitionConfigwhere
CodeRepetitionConfig: Default,
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
Source§impl PartialEq for CodeRepetitionConfig
impl PartialEq for CodeRepetitionConfig
Source§impl Serialize for CodeRepetitionConfig
impl Serialize for CodeRepetitionConfig
impl StructuralPartialEq for CodeRepetitionConfig
Auto Trait Implementations§
impl Freeze for CodeRepetitionConfig
impl RefUnwindSafe for CodeRepetitionConfig
impl Send for CodeRepetitionConfig
impl Sync for CodeRepetitionConfig
impl Unpin for CodeRepetitionConfig
impl UnsafeUnpin for CodeRepetitionConfig
impl UnwindSafe for CodeRepetitionConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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