pub struct FnRecognition {
pub primary: Archetype,
pub labels: Vec<Archetype>,
}Expand description
Per-fn recognition output: precedence-picked primary archetype + the full multi-label set the classifier fired on.
Facts (the AST walker output) intentionally don’t escape here —
they’re cheap to recompute if a future consumer wants them, and
keeping the ProgramShape value small means downstream passes
(proof_lower, future inliner / monomorphizer) can clone it freely.
Fields§
§primary: Archetype§labels: Vec<Archetype>Trait Implementations§
Source§impl Clone for FnRecognition
impl Clone for FnRecognition
Source§fn clone(&self) -> FnRecognition
fn clone(&self) -> FnRecognition
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 FnRecognition
impl Debug for FnRecognition
impl Eq for FnRecognition
Source§impl PartialEq for FnRecognition
impl PartialEq for FnRecognition
impl StructuralPartialEq for FnRecognition
Auto Trait Implementations§
impl Freeze for FnRecognition
impl RefUnwindSafe for FnRecognition
impl Send for FnRecognition
impl Sync for FnRecognition
impl Unpin for FnRecognition
impl UnsafeUnpin for FnRecognition
impl UnwindSafe for FnRecognition
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.