pub struct DesktopEntryGroup<'a> { /* private fields */ }Implementations§
Source§impl<'a> DesktopEntryGroup<'a>
impl<'a> DesktopEntryGroup<'a>
Sourcepub fn name(&self) -> &'a str
pub fn name(&self) -> &'a str
Get the group name
Example:
[Desktop Entry]
Exec=/usr/bin/coolHere “Desktop Entry” is the group name.
Sourcepub fn get(&self, key: &str) -> Option<&DesktopEntryGroupEntry<'a>>
pub fn get(&self, key: &str) -> Option<&DesktopEntryGroupEntry<'a>>
Get the entry belonging to a key
Sourcepub fn entries(&self) -> &[DesktopEntryGroupEntry<'a>]
pub fn entries(&self) -> &[DesktopEntryGroupEntry<'a>]
Get a slice with all the entries in the group
Sourcepub fn entries_mut(&mut self) -> &mut [DesktopEntryGroupEntry<'a>]
pub fn entries_mut(&mut self) -> &mut [DesktopEntryGroupEntry<'a>]
Get a mutable slice with all the entries in the group
Trait Implementations§
Source§impl<'a> Clone for DesktopEntryGroup<'a>
impl<'a> Clone for DesktopEntryGroup<'a>
Source§fn clone(&self) -> DesktopEntryGroup<'a>
fn clone(&self) -> DesktopEntryGroup<'a>
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<'a> Debug for DesktopEntryGroup<'a>
impl<'a> Debug for DesktopEntryGroup<'a>
Source§impl<'a> PartialEq for DesktopEntryGroup<'a>
impl<'a> PartialEq for DesktopEntryGroup<'a>
impl<'a> StructuralPartialEq for DesktopEntryGroup<'a>
Auto Trait Implementations§
impl<'a> Freeze for DesktopEntryGroup<'a>
impl<'a> RefUnwindSafe for DesktopEntryGroup<'a>
impl<'a> Send for DesktopEntryGroup<'a>
impl<'a> Sync for DesktopEntryGroup<'a>
impl<'a> Unpin for DesktopEntryGroup<'a>
impl<'a> UnwindSafe for DesktopEntryGroup<'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