pub struct PrecompiledArtifact<'a> {
pub xclbin: &'a [u8],
pub insts: &'a [u8],
pub entry: &'a str,
pub inputs: usize,
pub outputs: usize,
pub slot_bytes: Vec<u64>,
}Expand description
A parsed precompiled artifact: borrowed payload views plus the owned per-slot binding plan.
Fields§
§xclbin: &'a [u8]§insts: &'a [u8]§entry: &'a str§inputs: usize§outputs: usize§slot_bytes: Vec<u64>Exact byte size of each binding slot: inputs occupy 0..inputs, outputs follow.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for PrecompiledArtifact<'a>
impl<'a> Clone for PrecompiledArtifact<'a>
Source§fn clone(&self) -> PrecompiledArtifact<'a>
fn clone(&self) -> PrecompiledArtifact<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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<'a> Freeze for PrecompiledArtifact<'a>
impl<'a> RefUnwindSafe for PrecompiledArtifact<'a>
impl<'a> Send for PrecompiledArtifact<'a>
impl<'a> Sync for PrecompiledArtifact<'a>
impl<'a> Unpin for PrecompiledArtifact<'a>
impl<'a> UnsafeUnpin for PrecompiledArtifact<'a>
impl<'a> UnwindSafe for PrecompiledArtifact<'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