pub enum Len {
Fixed,
Count(u32),
Slot(Slot),
}Expand description
How many elements an Inst::Alloc asks for.
Variants§
Fixed
A shape whose size the layout already fixes: a struct, an enum, a closure, a box.
Count(u32)
A count the lowering knew: a literal array’s element count, a string literal’s byte count.
Slot(Slot)
A count in a slot, as an Int.
Trait Implementations§
impl Copy for Len
impl Eq for Len
impl StructuralPartialEq for Len
Auto Trait Implementations§
impl Freeze for Len
impl RefUnwindSafe for Len
impl Send for Len
impl Sync for Len
impl Unpin for Len
impl UnsafeUnpin for Len
impl UnwindSafe for Len
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.