#[non_exhaustive]pub enum InferenceMethod {
PatternEmbedding,
CooccurrencePmi,
Custom(String),
}Expand description
Provenance tag describing how a typed relation was inferred.
Serialised into TypedRelation::source_label as
"inferred:<method>" per solution.md R3: every edge carries its
inference method so rollback and audit can filter by origin.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PatternEmbedding
KeyBERT-style pattern-embedding clustering (Leiden).
CooccurrencePmi
Co-occurrence PMI promoted to a named type via clustering.
Custom(String)
Caller-supplied custom method. String is forensics-tagged in the provenance label verbatim; keep it short and snake_case.
Implementations§
Source§impl InferenceMethod
impl InferenceMethod
Sourcepub fn provenance_label(&self) -> String
pub fn provenance_label(&self) -> String
Render as the inferred:<method> tag used in provenance
labels and the mnem commit audit stream.
Trait Implementations§
Source§impl Clone for InferenceMethod
impl Clone for InferenceMethod
Source§fn clone(&self) -> InferenceMethod
fn clone(&self) -> InferenceMethod
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 InferenceMethod
impl Debug for InferenceMethod
Source§impl<'de> Deserialize<'de> for InferenceMethod
impl<'de> Deserialize<'de> for InferenceMethod
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 InferenceMethod
impl PartialEq for InferenceMethod
Source§fn eq(&self, other: &InferenceMethod) -> bool
fn eq(&self, other: &InferenceMethod) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InferenceMethod
impl Serialize for InferenceMethod
impl Eq for InferenceMethod
impl StructuralPartialEq for InferenceMethod
Auto Trait Implementations§
impl Freeze for InferenceMethod
impl RefUnwindSafe for InferenceMethod
impl Send for InferenceMethod
impl Sync for InferenceMethod
impl Unpin for InferenceMethod
impl UnsafeUnpin for InferenceMethod
impl UnwindSafe for InferenceMethod
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