pub struct ShortcutIcon {
pub path: PathBuf,
pub index: i32,
}Expand description
Icon configuration for a Windows shortcut.
§Examples
let icon = win_desktop_utils::ShortcutIcon::new(r"C:\Windows\notepad.exe", 0);
assert_eq!(icon.index, 0);
assert!(icon.path.ends_with("notepad.exe"));Fields§
§path: PathBufPath to an icon resource, executable, or DLL.
index: i32Zero-based icon index inside the resource.
Implementations§
Trait Implementations§
Source§impl Clone for ShortcutIcon
impl Clone for ShortcutIcon
Source§fn clone(&self) -> ShortcutIcon
fn clone(&self) -> ShortcutIcon
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShortcutIcon
impl Debug for ShortcutIcon
Source§impl PartialEq for ShortcutIcon
impl PartialEq for ShortcutIcon
impl Eq for ShortcutIcon
impl StructuralPartialEq for ShortcutIcon
Auto Trait Implementations§
impl Freeze for ShortcutIcon
impl RefUnwindSafe for ShortcutIcon
impl Send for ShortcutIcon
impl Sync for ShortcutIcon
impl Unpin for ShortcutIcon
impl UnsafeUnpin for ShortcutIcon
impl UnwindSafe for ShortcutIcon
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