pub struct AllocationRequirements {
pub preferred_devices: Vec<Device>,
pub memory_type: MemoryType,
pub alignment: Option<usize>,
pub is_critical: bool,
pub expected_lifetime: Option<Duration>,
}Expand description
Requirements for memory allocation
Fields§
§preferred_devices: Vec<Device>Preferred devices in order
memory_type: MemoryTypeMemory type hint
alignment: Option<usize>Required alignment
is_critical: boolWhether allocation is time-critical
expected_lifetime: Option<Duration>Expected lifetime
Trait Implementations§
Source§impl Clone for AllocationRequirements
impl Clone for AllocationRequirements
Source§fn clone(&self) -> AllocationRequirements
fn clone(&self) -> AllocationRequirements
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 AllocationRequirements
impl RefUnwindSafe for AllocationRequirements
impl Send for AllocationRequirements
impl Sync for AllocationRequirements
impl Unpin for AllocationRequirements
impl UnsafeUnpin for AllocationRequirements
impl UnwindSafe for AllocationRequirements
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