pub enum SiteKind {
Record,
Tuple,
}Expand description
Which aggregate constructor an escape site is — determines which
stack-alloc opcode a future codegen slice would emit for it
(AllocStackRecord for records; tuple stack-alloc is not yet
implemented, so Tuple sites are reported but not lowered).
Variants§
Record
Op::MakeRecord: shape_idx is meaningful, field_count is
the record’s field count.
Tuple
Op::MakeTuple: shape_idx is unused (0), field_count is
the tuple arity.
Trait Implementations§
impl Copy for SiteKind
impl Eq for SiteKind
impl StructuralPartialEq for SiteKind
Auto Trait Implementations§
impl Freeze for SiteKind
impl RefUnwindSafe for SiteKind
impl Send for SiteKind
impl Sync for SiteKind
impl Unpin for SiteKind
impl UnsafeUnpin for SiteKind
impl UnwindSafe for SiteKind
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.