pub(crate) struct FilesSection(Vec<PathBuf>);Expand description
The raw data section in alpm-files data.
Tuple Fields§
§0: Vec<PathBuf>Implementations§
Source§impl FilesSection
impl FilesSection
Sourcepub(crate) const SECTION_KEYWORD: &str = "%FILES%"
pub(crate) const SECTION_KEYWORD: &str = "%FILES%"
The section keyword (“%FILES%”).
Sourcefn parse_path(input: &mut &str) -> ModalResult<PathBuf>
fn parse_path(input: &mut &str) -> ModalResult<PathBuf>
Recognizes a PathBuf in a single line.
§Note
This parser only consumes till the end of a line and attempts to parse a PathBuf from
it. Trailing line endings and EOF are handled.
§Errors
Returns an error if a PathBuf cannot be created from the line, or something other than a
line ending or EOF is encountered afterwards.
Sourcepub(crate) fn parser(input: &mut &str) -> ModalResult<Self>
pub(crate) fn parser(input: &mut &str) -> ModalResult<Self>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FilesSection
impl RefUnwindSafe for FilesSection
impl Send for FilesSection
impl Sync for FilesSection
impl Unpin for FilesSection
impl UnwindSafe for FilesSection
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