blob: eaf706e5da99d43848c89b7d15fd5fe7d166053b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
use std::{
marker,
};
use utils::{
NewFromPtr,
};
use database;
use ffi;
pub struct Directory<'d>(
*mut ffi::notmuch_directory_t,
marker::PhantomData<&'d mut database::Database>,
);
impl<'d> NewFromPtr<*mut ffi::notmuch_directory_t> for Directory<'d> {
fn new(ptr: *mut ffi::notmuch_directory_t) -> Directory<'d> {
Directory(ptr, marker::PhantomData)
}
}
|