pub trait ShellItem2 {
// Required methods
fn from_path_w(path: PCWSTR) -> Result<IShellItem2>;
fn from_id_list(id_list: *const ITEMIDLIST) -> Result<IShellItem2>;
fn get_property_store(
&self,
flags: GETPROPERTYSTOREFLAGS,
) -> Result<IPropertyStore>;
}Available on crate feature
prop only.Required Methods§
Sourcefn from_path_w(path: PCWSTR) -> Result<IShellItem2>
fn from_path_w(path: PCWSTR) -> Result<IShellItem2>
SHCreateItemFromParsingName function (shobjidl_core.h)
Although not documented, this requires CoInitialize().
Sourcefn from_id_list(id_list: *const ITEMIDLIST) -> Result<IShellItem2>
fn from_id_list(id_list: *const ITEMIDLIST) -> Result<IShellItem2>
Sourcefn get_property_store(
&self,
flags: GETPROPERTYSTOREFLAGS,
) -> Result<IPropertyStore>
fn get_property_store( &self, flags: GETPROPERTYSTOREFLAGS, ) -> Result<IPropertyStore>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".