Re: Pointer ownership

Subject: Re: Pointer ownership

Date: Sat, 22 Dec 2018 15:11:30 +0900

To: Dirk Van Haerenborgh

Cc: notmuch@notmuchmail.org

From: David Bremner


Dirk Van Haerenborgh <vhdirk@gmail.com> writes:

> Thanks.
>
> For the most part, that's what I ended up with, but the thread 'stealing' a
> message will be quite hard to implement in Rust, I guess.
> When using notmuch_query_search_messages, I was assuming the resulting
> individual messages to be owned by the query.
> So, if at a later point in time, one uses notmuch_query_search_threads,
> will the ownership of a previous message abruptly be
> transferred from query to thread?
> I do want to be able to run *_destroy at some point :)

It's still (transitively) owned by the query in that case, since the
threads are owned by the query.

d
_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: