enum PackageBaseKeyword {
Source(SourceKeyword),
SharedMeta(SharedMetaKeyword),
Relation(RelationKeyword),
Exclusive(ExclusivePackageBaseKeyword),
}Expand description
A keyword that may appear in a package base section.
Variants§
Trait Implementations§
Source§impl AlpmParser for PackageBaseKeyword
impl AlpmParser for PackageBaseKeyword
Source§fn parser<'a>(input: &mut Input<'a>) -> PResult<'a, Self>
fn parser<'a>(input: &mut Input<'a>) -> PResult<'a, Self>
Recognizes a PackageBaseKeyword in an Input.
§Errors
Returns an error, if none of the PackageBaseKeyword variants are contained in input.
Source§fn delimiter_error_context<'a, O, P>(
parser: P,
) -> impl Parser<LocatingSlice<&'a str>, O, ErrMode<ParseStack<'a>>>where
P: Parser<LocatingSlice<&'a str>, O, ErrMode<ParseStack<'a>>>,
fn delimiter_error_context<'a, O, P>(
parser: P,
) -> impl Parser<LocatingSlice<&'a str>, O, ErrMode<ParseStack<'a>>>where
P: Parser<LocatingSlice<&'a str>, O, ErrMode<ParseStack<'a>>>,
Attaches a winnow error context to the parser when a parse error is encountered. Read more
Auto Trait Implementations§
impl Freeze for PackageBaseKeyword
impl RefUnwindSafe for PackageBaseKeyword
impl Send for PackageBaseKeyword
impl Sync for PackageBaseKeyword
impl Unpin for PackageBaseKeyword
impl UnsafeUnpin for PackageBaseKeyword
impl UnwindSafe for PackageBaseKeyword
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
Source§impl<U> ParserUntil for Uwhere
U: AlpmParser,
impl<U> ParserUntil for Uwhere
U: AlpmParser,
Source§fn parser_until<'a, P>(
delimiter: P,
) -> impl Parser<LocatingSlice<&'a str>, U, ErrMode<ParseStack<'a>>>
fn parser_until<'a, P>( delimiter: P, ) -> impl Parser<LocatingSlice<&'a str>, U, ErrMode<ParseStack<'a>>>
Returns a [Parser] that parses Self until the given delimiter parser
matches.
Source§fn parser_until_eof<'a>(
input: &mut LocatingSlice<&'a str>,
) -> Result<Self, ErrMode<ParseStack<'a>>>
fn parser_until_eof<'a>( input: &mut LocatingSlice<&'a str>, ) -> Result<Self, ErrMode<ParseStack<'a>>>
Source§fn parser_until_line_ending<'a>(
input: &mut LocatingSlice<&'a str>,
) -> Result<Self, ErrMode<ParseStack<'a>>>
fn parser_until_line_ending<'a>( input: &mut LocatingSlice<&'a str>, ) -> Result<Self, ErrMode<ParseStack<'a>>>
Source§impl<U> ParserUntilInclusive for Uwhere
U: ParserUntil,
impl<U> ParserUntilInclusive for Uwhere
U: ParserUntil,
Source§fn parser_until_inclusive<'a, P>(
delimiter: P,
) -> impl Parser<LocatingSlice<&'a str>, U, ErrMode<ParseStack<'a>>>
fn parser_until_inclusive<'a, P>( delimiter: P, ) -> impl Parser<LocatingSlice<&'a str>, U, ErrMode<ParseStack<'a>>>
Returns a [Parser] that parses the whole input and consumes the given delimiter parser.
Delegates to ParserUntil::parser_until and consumes the delimiter.
Source§fn parser_until_line_ending_inclusive<'a>(
input: &mut LocatingSlice<&'a str>,
) -> Result<Self, ErrMode<ParseStack<'a>>>
fn parser_until_line_ending_inclusive<'a>( input: &mut LocatingSlice<&'a str>, ) -> Result<Self, ErrMode<ParseStack<'a>>>
Returns a [
Parser] that parses until the end of line and fully consumes it. Read more