#[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: u32
Implementations§
Source§impl MemoryRequirements
impl MemoryRequirements
pub fn builder<'a>() -> MemoryRequirementsBuilder<'a>
Trait Implementations§
Source§impl Clone for MemoryRequirements
impl Clone for MemoryRequirements
Source§fn clone(&self) -> MemoryRequirements
fn clone(&self) -> MemoryRequirements
Returns a copy 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 moreSource§impl Debug for MemoryRequirements
impl Debug for MemoryRequirements
Source§impl Default for MemoryRequirements
impl Default for MemoryRequirements
Source§fn default() -> MemoryRequirements
fn default() -> MemoryRequirements
Returns the “default value” for a type. Read more
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)