Type Alias element_meter

Source
pub type element_meter = Option<unsafe extern "C" fn(el: *const c_void) -> size_t>;
Expand description

an element length meter.

An element meter is a function that: -# receives the reference to an element el -# returns its size in bytes

It is responsibility of the function to handle possible NULL values.

Aliased Type§

enum element_meter {
    None,
    Some(unsafe extern "C" fn(_: *const c_void) -> u32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *const c_void) -> u32)

Some value of type T.