pub struct PrecompiledImage<'a> {
pub kind: ImageKind,
pub image: ModuleImage<'a>,
pub metadata: ArtifactMetadata,
}Expand description
Precompiled bytes and producer metadata, using the existing module-image storage.
Fields§
§kind: ImageKindDeclared device-code format of image.
image: ModuleImage<'a>Borrowed or owned precompiled device-code bytes.
metadata: ArtifactMetadataProducer compilation policy and entry descriptions retained with the loaded module.
Implementations§
Source§impl<'a> PrecompiledImage<'a>
impl<'a> PrecompiledImage<'a>
Sourcepub fn new(
kind: ImageKind,
image: ModuleImage<'a>,
metadata: ArtifactMetadata,
) -> Self
pub fn new( kind: ImageKind, image: ModuleImage<'a>, metadata: ArtifactMetadata, ) -> Self
Combines the image bytes, declared format, and producer metadata.
The image’s constructor established that its bytes are loadable; kind is not checked against them.
Trait Implementations§
Source§impl<'a> Clone for PrecompiledImage<'a>
impl<'a> Clone for PrecompiledImage<'a>
Auto Trait Implementations§
impl<'a> Forget for PrecompiledImage<'a>
impl<'a> Freeze for PrecompiledImage<'a>
impl<'a> Move for PrecompiledImage<'a>
impl<'a> RefUnwindSafe for PrecompiledImage<'a>
impl<'a> Send for PrecompiledImage<'a>
impl<'a> Sync for PrecompiledImage<'a>
impl<'a> Unpin for PrecompiledImage<'a>
impl<'a> UnsafeUnpin for PrecompiledImage<'a>
impl<'a> UnwindSafe for PrecompiledImage<'a>
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