[][src]Type Definition melib::backends::notmuch::bindings::notmuch_threads_get

type notmuch_threads_get = unsafe extern "C" fn(threads: *mut notmuch_threads_t) -> *mut notmuch_thread_t;

Get the current thread from 'threads' as a notmuch_thread_t.

Note: The returned thread belongs to 'threads' and has a lifetime identical to it (and the query to which it belongs).

See the documentation of notmuch_query_search_threads for example code showing how to iterate over a notmuch_threads_t object.

If an out-of-memory situation occurs, this function will return NULL.