pub struct ReferenceArtifact { /* private fields */ }Expand description
Fixed-size builder for the mock backend’s test-only executable format.
Implementations§
Source§impl ReferenceArtifact
impl ReferenceArtifact
Sourcepub fn barrier(slot: u32) -> Self
pub fn barrier(slot: u32) -> Self
Build a no-op submission used to exercise lifecycle and synchronization behavior.
The operation requires exactly one binding at slot, with any otherwise-valid access.
Sourcepub fn copy(source_slot: u32, target_slot: u32) -> Result<Self, BackendError>
pub fn copy(source_slot: u32, target_slot: u32) -> Result<Self, BackendError>
Build a byte-for-byte copy from a Read binding to an equal-length Write binding.
Sourcepub fn fill(target_slot: u32, value: u8) -> Self
pub fn fill(target_slot: u32, value: u8) -> Self
Build a fill of the complete Write range bound at target_slot.
Sourcepub fn xor(target_slot: u32, value: u8) -> Self
pub fn xor(target_slot: u32, value: u8) -> Self
Build an in-place XOR of the complete ReadWrite range bound at target_slot.
pub const fn as_bytes(&self) -> &[u8; 24]
Trait Implementations§
Source§impl AsRef<[u8]> for ReferenceArtifact
impl AsRef<[u8]> for ReferenceArtifact
Source§impl Clone for ReferenceArtifact
impl Clone for ReferenceArtifact
Source§fn clone(&self) -> ReferenceArtifact
fn clone(&self) -> ReferenceArtifact
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 moreimpl Copy for ReferenceArtifact
Source§impl Debug for ReferenceArtifact
impl Debug for ReferenceArtifact
impl Eq for ReferenceArtifact
Source§impl PartialEq for ReferenceArtifact
impl PartialEq for ReferenceArtifact
Source§fn eq(&self, other: &ReferenceArtifact) -> bool
fn eq(&self, other: &ReferenceArtifact) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReferenceArtifact
Auto Trait Implementations§
impl Freeze for ReferenceArtifact
impl RefUnwindSafe for ReferenceArtifact
impl Send for ReferenceArtifact
impl Sync for ReferenceArtifact
impl Unpin for ReferenceArtifact
impl UnsafeUnpin for ReferenceArtifact
impl UnwindSafe for ReferenceArtifact
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