pub enum SectionKeyword {
Show 20 variants
Name,
Version,
Base,
Desc,
Url,
Arch,
BuildDate,
InstallDate,
Packager,
Size,
Groups,
Reason,
License,
Validation,
Replaces,
Depends,
OptDepends,
Conflicts,
Provides,
XData,
}Expand description
A known section name in an alpm-db-desc file.
Section names are e.g. %NAME% or %VERSION%.
Variants§
Name
%NAME%
Version
%VERSION%
Base
%BASE%
Desc
%DESC%
Url
%URL%
Arch
%ARCH%
BuildDate
%BUILDDATE%
InstallDate
%INSTALLDATE%
Packager
%PACKAGER%
Size
%SIZE%
Groups
%GROUPS%
Reason
%REASON%
License
%LICENSE%
Validation
%VALIDATION%
Replaces
%REPLACES%
Depends
%DEPENDS%
OptDepends
%OPTDEPENDS%
Conflicts
%CONFLICTS%
Provides
%PROVIDES%
XData
%XDATA%
Implementations§
Source§impl SectionKeyword
impl SectionKeyword
Sourcepub fn parser(input: &mut &str) -> ModalResult<Self>
pub fn parser(input: &mut &str) -> ModalResult<Self>
Recognizes a SectionKeyword in an input string slice.
§Examples
use alpm_db::desc::SectionKeyword;
let mut input = "%NAME%\nfoo\n";
let kw = SectionKeyword::parser(&mut input)?;
assert_eq!(kw, SectionKeyword::Name);§Errors
Returns an error if the input does not start with a valid
%SECTION% header followed by a newline.
Trait Implementations§
Source§impl Clone for SectionKeyword
impl Clone for SectionKeyword
Source§fn clone(&self) -> SectionKeyword
fn clone(&self) -> SectionKeyword
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 Debug for SectionKeyword
impl Debug for SectionKeyword
Source§impl Display for SectionKeyword
impl Display for SectionKeyword
Source§impl FromStr for SectionKeyword
impl FromStr for SectionKeyword
Source§impl Hash for SectionKeyword
impl Hash for SectionKeyword
Source§impl PartialEq for SectionKeyword
impl PartialEq for SectionKeyword
Source§impl TryFrom<&str> for SectionKeyword
impl TryFrom<&str> for SectionKeyword
Source§impl VariantNames for SectionKeyword
impl VariantNames for SectionKeyword
impl Eq for SectionKeyword
impl StructuralPartialEq for SectionKeyword
Auto Trait Implementations§
impl Freeze for SectionKeyword
impl RefUnwindSafe for SectionKeyword
impl Send for SectionKeyword
impl Sync for SectionKeyword
impl Unpin for SectionKeyword
impl UnwindSafe for SectionKeyword
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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