pub struct FrameSpecProposal {
pub id: Symbol,
pub kind: FrameKind,
pub template: String,
pub holes: Vec<FrameHoleSpec>,
pub rationale: String,
}Expand description
Candidate frame specification inferred from prose that has no registered frame.
Fields§
§id: SymbolProposed frame id.
kind: FrameKindProposed illocutionary frame kind.
template: StringProposed deterministic template body using {hole} placeholders.
holes: Vec<FrameHoleSpec>Proposed typed holes accepted by the template.
rationale: StringShort explanation of why this frame fits the prose fragment.
Implementations§
Source§impl FrameSpecProposal
impl FrameSpecProposal
Sourcepub fn hole_names(&self) -> Vec<String>
pub fn hole_names(&self) -> Vec<String>
Returns the proposed hole names as stable strings.
Sourcepub fn to_expr(&self) -> Expr
pub fn to_expr(&self) -> Expr
Encodes the proposal as data for model repair prompts and review views.
Sourcepub fn content_id(&self) -> Result<ContentId>
pub fn content_id(&self) -> Result<ContentId>
Computes the content id of this candidate proposal.
Trait Implementations§
Source§impl Clone for FrameSpecProposal
impl Clone for FrameSpecProposal
Source§fn clone(&self) -> FrameSpecProposal
fn clone(&self) -> FrameSpecProposal
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 FrameSpecProposal
impl Debug for FrameSpecProposal
impl Eq for FrameSpecProposal
Source§impl PartialEq for FrameSpecProposal
impl PartialEq for FrameSpecProposal
impl StructuralPartialEq for FrameSpecProposal
Auto Trait Implementations§
impl Freeze for FrameSpecProposal
impl RefUnwindSafe for FrameSpecProposal
impl Send for FrameSpecProposal
impl Sync for FrameSpecProposal
impl Unpin for FrameSpecProposal
impl UnsafeUnpin for FrameSpecProposal
impl UnwindSafe for FrameSpecProposal
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.