Skip to main content

lumen_nodelist_get

Function lumen_nodelist_get 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn lumen_nodelist_get( list: LumenNodeList, index: usize, out: *mut LumenNode, ) -> LumenStatus
Expand description

Read the handle at index in list, written to *out. Out-of-range (or null list) returns LumenStatus::ErrBadArg. The iteration primitive: walk 0..list.len. Thread-safe.

ยงSafety

list must be a list returned by a query / children call and not yet freed.