pub struct GenericAssignmentConfidenceSpec {
pub ordinary_base: f64,
pub test_base: f64,
pub documentation_base: f64,
pub comment_base: f64,
pub scanned_comment_base: f64,
pub entropy_reference: f64,
pub entropy_gain_per_bit: f64,
pub entropy_lift_max: f64,
pub length_reference: usize,
pub length_gain_per_byte: f64,
pub length_lift_max: f64,
pub max_confidence: f64,
}Expand description
Confidence mapping for a detector-owned generic assignment candidate.
Fields§
§ordinary_base: f64Base confidence for ordinary source and configuration content.
test_base: f64Base confidence for test content when test-path penalties are enabled.
documentation_base: f64Base confidence for documentation when test-path penalties are enabled.
comment_base: f64Base confidence for comments under the default comment policy.
scanned_comment_base: f64Base confidence for comments when the operator enables comment scanning.
entropy_reference: f64Shannon entropy at which the entropy lift starts.
entropy_gain_per_bit: f64Confidence gained per entropy bit above entropy_reference.
entropy_lift_max: f64Maximum confidence contributed by entropy.
length_reference: usizeByte length at which the length lift starts.
length_gain_per_byte: f64Confidence gained per byte above length_reference.
length_lift_max: f64Maximum confidence contributed by length.
max_confidence: f64Maximum confidence this generic assignment path may emit.
Implementations§
Trait Implementations§
Source§impl Clone for GenericAssignmentConfidenceSpec
impl Clone for GenericAssignmentConfidenceSpec
Source§fn clone(&self) -> GenericAssignmentConfidenceSpec
fn clone(&self) -> GenericAssignmentConfidenceSpec
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 moreimpl Copy for GenericAssignmentConfidenceSpec
Source§impl<'de> Deserialize<'de> for GenericAssignmentConfidenceSpec
impl<'de> Deserialize<'de> for GenericAssignmentConfidenceSpec
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
impl StructuralPartialEq for GenericAssignmentConfidenceSpec
Auto Trait Implementations§
impl Freeze for GenericAssignmentConfidenceSpec
impl RefUnwindSafe for GenericAssignmentConfidenceSpec
impl Send for GenericAssignmentConfidenceSpec
impl Sync for GenericAssignmentConfidenceSpec
impl Unpin for GenericAssignmentConfidenceSpec
impl UnsafeUnpin for GenericAssignmentConfidenceSpec
impl UnwindSafe for GenericAssignmentConfidenceSpec
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>,
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