Skip to main content

contract_table

Function contract_table 

Source
pub unsafe fn contract_table(
    table: &'static [ContractEntry],
    out_len: *mut usize,
) -> *const ContractEntry
Expand description

The body of {prefix}_{module}_contract: write the table’s length to out_len and return its first entry (null for an empty table).

§Safety

out_len must be null or point to a writable usize.