Skip to main content

read_shared_bool

Function read_shared_bool 

Source
pub unsafe fn read_shared_bool(cell: *const SharedCell) -> bool
Expand description

Read a bool from a SharedCell’s payload — false iff every byte of the 8-byte payload is zero, true otherwise. (write_shared_bool stores 0 or 1, so this is just the standard “any non-zero byte” test.)

§Safety

cell must point to a live SharedCell whose interior FieldKind is Bool.