pub struct ExtendedSimpSet {
pub lemmas: Vec<(String, u64)>,
pub erased: Vec<String>,
}Expand description
A simp set extended with custom lemmas and priorities.
Fields§
§lemmas: Vec<(String, u64)>Lemma names and priorities in this simp set.
erased: Vec<String>Erased lemma names.
Implementations§
Source§impl ExtendedSimpSet
impl ExtendedSimpSet
Sourcepub fn erase_lemma(&mut self, name: &str)
pub fn erase_lemma(&mut self, name: &str)
Erase a lemma by name.
Sourcepub fn is_active(&self, name: &str) -> bool
pub fn is_active(&self, name: &str) -> bool
Check if a lemma name is active (added but not erased).
Sourcepub fn sorted_lemmas(&self) -> Vec<(String, u64)>
pub fn sorted_lemmas(&self) -> Vec<(String, u64)>
Sort lemmas by descending priority.
Sourcepub fn active_count(&self) -> usize
pub fn active_count(&self) -> usize
Total number of active lemmas.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExtendedSimpSet
impl RefUnwindSafe for ExtendedSimpSet
impl Send for ExtendedSimpSet
impl Sync for ExtendedSimpSet
impl Unpin for ExtendedSimpSet
impl UnsafeUnpin for ExtendedSimpSet
impl UnwindSafe for ExtendedSimpSet
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