pub struct TemplateIdentifier { /* private fields */ }Expand description
Template identifier for analyzing proofs.
Implementations§
Source§impl TemplateIdentifier
impl TemplateIdentifier
Sourcepub fn with_min_size(self, size: usize) -> Self
pub fn with_min_size(self, size: usize) -> Self
Set the minimum template size.
Sourcepub fn with_max_size(self, size: usize) -> Self
pub fn with_max_size(self, size: usize) -> Self
Set the maximum template size.
Sourcepub fn with_min_occurrences(self, occurrences: usize) -> Self
pub fn with_min_occurrences(self, occurrences: usize) -> Self
Set the minimum occurrences threshold.
Sourcepub fn identify_templates(&mut self, proofs: &[&Proof])
pub fn identify_templates(&mut self, proofs: &[&Proof])
Identify templates from a collection of proofs.
Sourcepub fn get_templates(&self) -> &[ProofTemplate]
pub fn get_templates(&self) -> &[ProofTemplate]
Get all identified templates.
Sourcepub fn get_templates_by_success_rate(&self) -> Vec<&ProofTemplate>
pub fn get_templates_by_success_rate(&self) -> Vec<&ProofTemplate>
Get templates sorted by success rate.
Sourcepub fn find_template(&self, name: &str) -> Option<&ProofTemplate>
pub fn find_template(&self, name: &str) -> Option<&ProofTemplate>
Find a template by name.
Sourcepub fn update_success_rate(&mut self, name: &str, success_rate: f64)
pub fn update_success_rate(&mut self, name: &str, success_rate: f64)
Update success rate for a template.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TemplateIdentifier
impl RefUnwindSafe for TemplateIdentifier
impl Send for TemplateIdentifier
impl Sync for TemplateIdentifier
impl Unpin for TemplateIdentifier
impl UnsafeUnpin for TemplateIdentifier
impl UnwindSafe for TemplateIdentifier
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