pub(crate) enum SlotAssignment {
Manual(U256),
Auto {
base_slot: U256,
},
}Expand description
Represents how a slot is assigned
Variants§
Manual(U256)
Manual slot value: #[slot(N)] or #[base_slot(N)]
Auto
Auto-assigned: stores after the latest auto-assigned field
Fields
§
base_slot: U256Base slot for packing decisions.
Implementations§
Trait Implementations§
Source§impl Clone for SlotAssignment
impl Clone for SlotAssignment
Source§fn clone(&self) -> SlotAssignment
fn clone(&self) -> SlotAssignment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SlotAssignment
impl RefUnwindSafe for SlotAssignment
impl Send for SlotAssignment
impl Sync for SlotAssignment
impl Unpin for SlotAssignment
impl UnwindSafe for SlotAssignment
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,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 40 bytes
Size for each variant:
Manual: 32 bytesAuto: 32 bytes