pub struct Alloc {
pub buffer: BufferId,
pub name: Symbol,
pub elem_ty: ScalarType,
pub size: AllocSize,
pub alignment: usize,
pub region: AllocRegion,
}Expand description
A memory allocation.
Fields§
§buffer: BufferIdBuffer identifier.
name: SymbolName for debugging.
elem_ty: ScalarTypeElement type.
size: AllocSizeTotal size in elements.
alignment: usizeAlignment in bytes.
region: AllocRegionAllocation region.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Alloc
impl<'de> Deserialize<'de> for Alloc
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Alloc
impl RefUnwindSafe for Alloc
impl Send for Alloc
impl Sync for Alloc
impl Unpin for Alloc
impl UnsafeUnpin for Alloc
impl UnwindSafe for Alloc
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