pub enum BodyShape {
LeafExpr,
SingleExpr,
Block(usize),
Unclassified(usize),
}Variants§
LeafExpr
BodyPlan::SingleExpr whose head is a leaf op (literal, ident,
resolved local, etc.) — the fastest possible body shape.
SingleExpr
BodyPlan::SingleExpr of any other kind (call, match, ctor, …).
Block(usize)
BodyPlan::Block { stmts: N, .. } — a multi-stmt block (let
bindings + tail expr).
Unclassified(usize)
Body didn’t match any of the classifier’s recognised shapes;
usually means the body is a match or some other top-level
expression the thin-body classifier doesn’t model.
Trait Implementations§
impl Copy for BodyShape
impl Eq for BodyShape
impl StructuralPartialEq for BodyShape
Auto Trait Implementations§
impl Freeze for BodyShape
impl RefUnwindSafe for BodyShape
impl Send for BodyShape
impl Sync for BodyShape
impl Unpin for BodyShape
impl UnsafeUnpin for BodyShape
impl UnwindSafe for BodyShape
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.