#[repr(C)]pub struct Arg(/* private fields */);
Expand description
Contains an untyped pointer to a function argument.
When calling a function via a CIF, each argument
must be passed as a C void*
. Wrapping the argument in the Arg
struct accomplishes the necessary coercion.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Arg
impl RefUnwindSafe for Arg
impl !Send for Arg
impl !Sync for Arg
impl Unpin for Arg
impl UnwindSafe for Arg
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