Struct gfx_hal::adapter::MemoryProperties
source · [−]pub struct MemoryProperties {
pub memory_types: Vec<MemoryType>,
pub memory_heaps: Vec<MemoryHeap>,
}
Expand description
Types of memory supported by this adapter and available memory.
Fields
memory_types: Vec<MemoryType>
Each memory type is associated with one heap of memory_heaps
.
Multiple types can point to the same heap.
memory_heaps: Vec<MemoryHeap>
Memory heaps with their size in bytes.
Trait Implementations
sourceimpl Clone for MemoryProperties
impl Clone for MemoryProperties
sourcefn clone(&self) -> MemoryProperties
fn clone(&self) -> MemoryProperties
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MemoryProperties
impl Debug for MemoryProperties
sourceimpl PartialEq<MemoryProperties> for MemoryProperties
impl PartialEq<MemoryProperties> for MemoryProperties
sourcefn eq(&self, other: &MemoryProperties) -> bool
fn eq(&self, other: &MemoryProperties) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MemoryProperties) -> bool
fn ne(&self, other: &MemoryProperties) -> bool
This method tests for !=
.
impl Eq for MemoryProperties
impl StructuralEq for MemoryProperties
impl StructuralPartialEq for MemoryProperties
Auto Trait Implementations
impl RefUnwindSafe for MemoryProperties
impl Send for MemoryProperties
impl Sync for MemoryProperties
impl Unpin for MemoryProperties
impl UnwindSafe for MemoryProperties
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more