pub(crate) struct BackupSection(Vec<BackupEntry>);Expand description
The raw backup section in alpm-db-files data.
Tuple Fields§
§0: Vec<BackupEntry>Implementations§
Source§impl BackupSection
impl BackupSection
Sourcepub(crate) const SECTION_KEYWORD: &str = "%BACKUP%"
pub(crate) const SECTION_KEYWORD: &str = "%BACKUP%"
The section keyword (“%BACKUP%”).
Sourcepub(crate) fn parser(input: &mut &str) -> ModalResult<Self>
pub(crate) fn parser(input: &mut &str) -> ModalResult<Self>
Recognizes the optional %BACKUP% section.
§Errors
Returns an error if the section header is missing or malformed, or if any entry cannot be parsed.
Sourcepub fn entries(self) -> Vec<BackupEntry>
pub fn entries(self) -> Vec<BackupEntry>
Returns the parsed entries.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BackupSection
impl RefUnwindSafe for BackupSection
impl Send for BackupSection
impl Sync for BackupSection
impl Unpin for BackupSection
impl UnwindSafe for BackupSection
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