#[repr(C)]pub struct DeviceMemoryProperties {
pub budget: usize,
pub used: usize,
}Expand description
Memory information of a device at one point in time.
Fields§
§budget: usizeHow much memory is available to this device at a given moment.
used: usizeHow much memory is currently getting used from the device.
Trait Implementations§
Source§impl Clone for DeviceMemoryProperties
impl Clone for DeviceMemoryProperties
Source§fn clone(&self) -> DeviceMemoryProperties
fn clone(&self) -> DeviceMemoryProperties
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 moreSource§impl Debug for DeviceMemoryProperties
impl Debug for DeviceMemoryProperties
impl Copy for DeviceMemoryProperties
Auto Trait Implementations§
impl Freeze for DeviceMemoryProperties
impl RefUnwindSafe for DeviceMemoryProperties
impl Send for DeviceMemoryProperties
impl Sync for DeviceMemoryProperties
impl Unpin for DeviceMemoryProperties
impl UnwindSafe for DeviceMemoryProperties
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