Enum wgpu_core::track::metadata::ResourceMetadataProvider
source · pub(super) enum ResourceMetadataProvider<'a, T: Clone> {
Direct {
resource: &'a T,
},
Indirect {
metadata: &'a ResourceMetadata<T>,
},
}
Expand description
A source of resource metadata.
This is used to abstract over the various places trackers can get new resource metadata from.
Variants§
Direct
Comes directly from explicit values.
Indirect
Comes from another metadata tracker.
Fields
§
metadata: &'a ResourceMetadata<T>
Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for ResourceMetadataProvider<'a, T>
impl<'a, T> RefUnwindSafe for ResourceMetadataProvider<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for ResourceMetadataProvider<'a, T>where
T: Sync,
impl<'a, T> Sync for ResourceMetadataProvider<'a, T>where
T: Sync,
impl<'a, T> Unpin for ResourceMetadataProvider<'a, T>
impl<'a, T> UnwindSafe for ResourceMetadataProvider<'a, T>where
T: RefUnwindSafe,
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