pub struct LemmaPattern {
pub rule: String,
pub num_premises: usize,
pub variables: Vec<String>,
pub structure: PatternStructure,
pub frequency: usize,
pub avg_depth: f64,
}Expand description
A pattern extracted from a lemma or proof fragment.
Fields§
§rule: StringThe inference rule used
num_premises: usizeNumber of premises
variables: Vec<String>Variables in the pattern (abstracted)
structure: PatternStructurePattern structure (simplified AST)
frequency: usizeFrequency of this pattern in the proof corpus
avg_depth: f64Average depth where this pattern appears
Trait Implementations§
Source§impl Clone for LemmaPattern
impl Clone for LemmaPattern
Source§fn clone(&self) -> LemmaPattern
fn clone(&self) -> LemmaPattern
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 LemmaPattern
impl Debug for LemmaPattern
Source§impl PartialEq for LemmaPattern
impl PartialEq for LemmaPattern
Source§fn eq(&self, other: &LemmaPattern) -> bool
fn eq(&self, other: &LemmaPattern) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LemmaPattern
Auto Trait Implementations§
impl Freeze for LemmaPattern
impl RefUnwindSafe for LemmaPattern
impl Send for LemmaPattern
impl Sync for LemmaPattern
impl Unpin for LemmaPattern
impl UnsafeUnpin for LemmaPattern
impl UnwindSafe for LemmaPattern
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