pub struct SlotAssignment {
pub buf: BufferId,
pub slot: usize,
pub offset: usize,
pub slot_size: usize,
pub buf_size: usize,
}Expand description
The memory slot assigned to a single buffer.
Fields§
§buf: BufferIdThe buffer being assigned.
slot: usizeIndex of the memory slot (0-based).
offset: usizeByte offset within the pool allocation for this slot.
slot_size: usizeSize of the slot in bytes (≥ buffer size, aligned).
buf_size: usizeSize of the buffer in bytes.
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 (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 SlotAssignment
impl Debug for SlotAssignment
impl Eq for SlotAssignment
Source§impl PartialEq for SlotAssignment
impl PartialEq for SlotAssignment
impl StructuralPartialEq for SlotAssignment
Auto Trait Implementations§
impl Freeze for SlotAssignment
impl RefUnwindSafe for SlotAssignment
impl Send for SlotAssignment
impl Sync for SlotAssignment
impl Unpin for SlotAssignment
impl UnsafeUnpin 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