pub enum ShellPath<'a> {
Path(PathBuf),
IdList(&'a AbsoluteIDList),
}Expand description
A file system path or Windows Shell item ID list (PIDL).
Variants§
Path(PathBuf)
IdList(&'a AbsoluteIDList)
Implementations§
Source§impl<'a> ShellPath<'a>
impl<'a> ShellPath<'a>
pub fn from_path_or_id_list( path: *const u16, id_list: &'a AbsoluteIDList, ) -> Option<Self>
pub fn to_file_path(&self) -> Result<PathBuf>
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Send for ShellPath<'a>
impl<'a> !Sync for ShellPath<'a>
impl<'a> Freeze for ShellPath<'a>
impl<'a> RefUnwindSafe for ShellPath<'a>
impl<'a> Unpin for ShellPath<'a>
impl<'a> UnsafeUnpin for ShellPath<'a>
impl<'a> UnwindSafe for ShellPath<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more