pub struct NamedArgEntry {
pub name: &'static str,
pub ptr: *const c_void,
}Expand description
A single named argument entry: a static string name paired with a raw const pointer to the argument value (already on the stack in the caller).
The pointer is *const c_void so no allocation occurs; it is the
caller’s responsibility to ensure the pointed-to value outlives the
kernel launch.
Fields§
§name: &'static strThe human-readable name of this kernel argument.
ptr: *const c_voidRaw const pointer to the argument value.
Trait Implementations§
Source§impl Clone for NamedArgEntry
impl Clone for NamedArgEntry
Source§fn clone(&self) -> NamedArgEntry
fn clone(&self) -> NamedArgEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NamedArgEntry
impl Debug for NamedArgEntry
impl Copy for NamedArgEntry
impl Send for NamedArgEntry
impl Sync for NamedArgEntry
Auto Trait Implementations§
impl Freeze for NamedArgEntry
impl RefUnwindSafe for NamedArgEntry
impl Unpin for NamedArgEntry
impl UnsafeUnpin for NamedArgEntry
impl UnwindSafe for NamedArgEntry
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