Struct block_sys::Block_byref_header
source · [−]#[repr(C)]pub struct Block_byref_header {
pub isa: *const Class,
pub forwarding: *mut Block_byref_header,
pub flags: block_flags,
pub size: i32,
}
Expand description
Structure used for on-stack variables that are referenced by blocks.
Fields
isa: *const Class
Class pointer. Currently unused on GNUStep and always NULL. Could be used in the future to support introspection.
forwarding: *mut Block_byref_header
The pointer to the structure that contains the real version of the data. All accesses go via this pointer. If an on-stack byref structure is copied to the heap, then its forwarding pointer should point to the heap version. Otherwise it should point to itself.
flags: block_flags
Flags and reference count.
TODO: Volatile!
size: i32
Available on non-crate feature
apple
only.Size of this structure.
Auto Trait Implementations
impl !RefUnwindSafe for Block_byref_header
impl !Send for Block_byref_header
impl !Sync for Block_byref_header
impl Unpin for Block_byref_header
impl !UnwindSafe for Block_byref_header
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