pub struct DesktopFile {
pub content: Vec<TopLevelEntry>,
}Expand description
The representation of a Freedesktop file, which contains TopLevelEntry.
This struct is used to parse raw data, see its implementations of [From<…>] for more information.
Fields§
§content: Vec<TopLevelEntry>The top-level entries of the file.
Trait Implementations§
Source§impl Clone for DesktopFile
impl Clone for DesktopFile
Source§impl Debug for DesktopFile
impl Debug for DesktopFile
Source§impl Display for DesktopFile
impl Display for DesktopFile
Source§impl EntrySet<Group> for DesktopFile
impl EntrySet<Group> for DesktopFile
Source§fn without_comments(&self) -> Vec<&Group>
fn without_comments(&self) -> Vec<&Group>
Returns a vector of the entries that are not comments or blanks.
Source§fn only_comments(&self) -> Vec<&CommentEntry>
fn only_comments(&self) -> Vec<&CommentEntry>
Returs a vector of the entries that are comments or blanks (no key-values entries).
Source§fn find(&self, header: &str) -> Option<&Group>
fn find(&self, header: &str) -> Option<&Group>
Find the first entry for this key, or
None if no entry with this key was found.Source§fn find_mut(&mut self, header: &str) -> Option<&mut Group>
fn find_mut(&mut self, header: &str) -> Option<&mut Group>
Find the first entry for this key and returns it as a mutable reference, or
None if no entry with this key was found.impl Eq for DesktopFile
Source§impl PartialEq for DesktopFile
impl PartialEq for DesktopFile
impl StructuralPartialEq for DesktopFile
Source§impl TryFrom<&[u8]> for DesktopFile
impl TryFrom<&[u8]> for DesktopFile
Source§impl TryFrom<&str> for DesktopFile
impl TryFrom<&str> for DesktopFile
Source§impl TryFrom<DesktopFile> for TrashFile
Available on crate feature trash only.
impl TryFrom<DesktopFile> for TrashFile
Available on crate feature
trash only.Auto Trait Implementations§
impl Freeze for DesktopFile
impl RefUnwindSafe for DesktopFile
impl Send for DesktopFile
impl Sync for DesktopFile
impl Unpin for DesktopFile
impl UnsafeUnpin for DesktopFile
impl UnwindSafe for DesktopFile
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