#[repr(C)]pub struct MemoryRequirements {
pub size: DeviceSize,
pub alignment: DeviceSize,
pub memory_type_bits: u32,
}Expand description
Fields§
§size: DeviceSize§alignment: DeviceSize§memory_type_bits: u32Implementations§
Source§impl MemoryRequirements
impl MemoryRequirements
pub fn size(self, size: DeviceSize) -> Self
pub fn alignment(self, alignment: DeviceSize) -> Self
pub fn memory_type_bits(self, memory_type_bits: u32) -> Self
Trait Implementations§
Source§impl Clone for MemoryRequirements
impl Clone for MemoryRequirements
impl Copy for MemoryRequirements
Auto Trait Implementations§
impl Freeze for MemoryRequirements
impl RefUnwindSafe for MemoryRequirements
impl Send for MemoryRequirements
impl Sync for MemoryRequirements
impl Unpin for MemoryRequirements
impl UnsafeUnpin for MemoryRequirements
impl UnwindSafe for MemoryRequirements
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