#[non_exhaustive]pub enum LeanWorkerProofPositionSelector {
Default,
Index {
index: u32,
},
AfterText {
text: String,
occurrence: Option<u32>,
},
Entry,
}Expand description
Intent selector for one proof position inside a declaration.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Default
Select the first tactic state in declaration order — the point after
the first tactic has run. A try_proof_step candidate is spliced after
that tactic, so a from-scratch tactic block does not elaborate against
the pristine entry goal; use Entry for that.
Index
Select the index-th tactic state in declaration order — the point
after the index-th tactic has run.
AfterText
Select the tactic whose source text exactly matches text.
Entry
Select the goal state before any tactic runs — the pristine entry goal
of the declaration’s proof. A try_proof_step candidate is spliced
before the first tactic, so a from-scratch tactic block elaborates
against this goal (the one proof_state reports as goals_before of the
first position). Anchors on the first enumerated tactic’s pre-state, so
the declaration must have at least one elaborated tactic.
Trait Implementations§
Source§impl Clone for LeanWorkerProofPositionSelector
impl Clone for LeanWorkerProofPositionSelector
Source§fn clone(&self) -> LeanWorkerProofPositionSelector
fn clone(&self) -> LeanWorkerProofPositionSelector
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for LeanWorkerProofPositionSelector
impl Default for LeanWorkerProofPositionSelector
Source§fn default() -> LeanWorkerProofPositionSelector
fn default() -> LeanWorkerProofPositionSelector
Source§impl<'de> Deserialize<'de> for LeanWorkerProofPositionSelector
impl<'de> Deserialize<'de> for LeanWorkerProofPositionSelector
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LeanWorkerProofPositionSelector, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LeanWorkerProofPositionSelector, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for LeanWorkerProofPositionSelector
Source§impl PartialEq for LeanWorkerProofPositionSelector
impl PartialEq for LeanWorkerProofPositionSelector
Source§fn eq(&self, other: &LeanWorkerProofPositionSelector) -> bool
fn eq(&self, other: &LeanWorkerProofPositionSelector) -> bool
self and other values to be equal, and is used by ==.