pub enum TopLevelEntry {
Group(Group),
Comment(CommentEntry),
}Expand description
An entry at the root of the file.
Variants§
Group(Group)
A section as per the Freedesktop specification.
Comment(CommentEntry)
A comment or blank line.
Trait Implementations§
Source§impl CanBeComment for TopLevelEntry
impl CanBeComment for TopLevelEntry
Source§impl Clone for TopLevelEntry
impl Clone for TopLevelEntry
Source§impl Debug for TopLevelEntry
impl Debug for TopLevelEntry
Source§impl Display for TopLevelEntry
impl Display for TopLevelEntry
impl Eq for TopLevelEntry
Source§impl From<CommentEntry> for TopLevelEntry
impl From<CommentEntry> for TopLevelEntry
Source§fn from(value: CommentEntry) -> Self
fn from(value: CommentEntry) -> Self
Converts to this type from the input type.
Source§impl From<Group> for TopLevelEntry
impl From<Group> for TopLevelEntry
Source§impl PartialEq for TopLevelEntry
impl PartialEq for TopLevelEntry
impl StructuralPartialEq for TopLevelEntry
Auto Trait Implementations§
impl Freeze for TopLevelEntry
impl RefUnwindSafe for TopLevelEntry
impl Send for TopLevelEntry
impl Sync for TopLevelEntry
impl Unpin for TopLevelEntry
impl UnsafeUnpin for TopLevelEntry
impl UnwindSafe for TopLevelEntry
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