Struct block_sys::Block_byref
source · [−]#[repr(C)]pub struct Block_byref {
pub header: Block_byref_header,
pub keep: Option<unsafe extern "C" fn(dst: *mut c_void, src: *mut c_void)>,
pub destroy: Option<unsafe extern "C" fn(src: *mut c_void)>,
}
Expand description
Structure used for on-stack variables that are referenced by blocks.
requires BLOCK_BYREF_HAS_COPY_DISPOSE
Fields
header: Block_byref_header
keep: Option<unsafe extern "C" fn(dst: *mut c_void, src: *mut c_void)>
Copy function.
destroy: Option<unsafe extern "C" fn(src: *mut c_void)>
Dispose function.
Auto Trait Implementations
impl !RefUnwindSafe for Block_byref
impl !Send for Block_byref
impl !Sync for Block_byref
impl Unpin for Block_byref
impl !UnwindSafe for Block_byref
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more