pub struct ProgramDesc {
pub format: NonZeroU32,
pub target: [u32; 12],
pub resident_bytes: NonZeroU64,
}Expand description
Opaque program envelope retained until program creation completes.
Fields§
§format: NonZeroU32Provider-owned nonzero artifact format.
target: [u32; 12]Opaque provider-owned target words.
resident_bytes: NonZeroU64Declared nonzero resident-memory charge.
Implementations§
Source§impl ProgramDesc
impl ProgramDesc
Sourcepub const fn new(
format: NonZeroU32,
target: [u32; 12],
resident_bytes: NonZeroU64,
) -> Self
pub const fn new( format: NonZeroU32, target: [u32; 12], resident_bytes: NonZeroU64, ) -> Self
Construct a program descriptor.
Trait Implementations§
Source§impl Clone for ProgramDesc
impl Clone for ProgramDesc
Source§fn clone(&self) -> ProgramDesc
fn clone(&self) -> ProgramDesc
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 ProgramDesc
Source§impl Debug for ProgramDesc
impl Debug for ProgramDesc
impl Eq for ProgramDesc
Source§impl PartialEq for ProgramDesc
impl PartialEq for ProgramDesc
Source§fn eq(&self, other: &ProgramDesc) -> bool
fn eq(&self, other: &ProgramDesc) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProgramDesc
Auto Trait Implementations§
impl Freeze for ProgramDesc
impl RefUnwindSafe for ProgramDesc
impl Send for ProgramDesc
impl Sync for ProgramDesc
impl Unpin for ProgramDesc
impl UnsafeUnpin for ProgramDesc
impl UnwindSafe for ProgramDesc
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