Struct block_sys::Block_byref_extended
source · #[repr(C)]pub struct Block_byref_extended {
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)>,
pub layout: *const c_char,
}
👎Deprecated:
block-sys
is deprecated. Use block2::ffi
insteadAvailable on crate feature
apple
only.Expand description
Structure used for on-stack variables that are referenced by blocks.
requires BLOCK_BYREF_LAYOUT_EXTENDED
Fields§
§header: Block_byref_header
👎Deprecated:
§block-sys
is deprecated. Use block2::ffi
insteadkeep: Option<unsafe extern "C" fn(dst: *mut c_void, src: *mut c_void)>
👎Deprecated:
block-sys
is deprecated. Use block2::ffi
insteadSame as Block_byref::keep
.
destroy: Option<unsafe extern "C" fn(src: *mut c_void)>
👎Deprecated:
block-sys
is deprecated. Use block2::ffi
insteadSame as Block_byref::destroy
.
layout: *const c_char
👎Deprecated:
block-sys
is deprecated. Use block2::ffi
insteadAuto Trait Implementations§
impl !RefUnwindSafe for Block_byref_extended
impl !Send for Block_byref_extended
impl !Sync for Block_byref_extended
impl Unpin for Block_byref_extended
impl !UnwindSafe for Block_byref_extended
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