winmtp 0.3.2

Bindings over Windows MTP API
Documentation
1
2
3
4
5
6
7
8
9
10
use windows::core::PCWSTR;

#[derive(Debug)]
pub struct ObjectId(pub PCWSTR);

impl<'a> std::convert::From<&'a ObjectId> for &'a PCWSTR {
    fn from(val: &'a ObjectId) -> Self {
        &val.0
    }
}