pub enum MakepkgOption {
BuildEnvironment(BuildEnvironmentOption),
Package(PackageOption),
}Expand description
Wraps the PackageOption and BuildEnvironmentOption enums.
This is necessary for metadata files such as SRCINFO or PKGBUILD package scripts that don’t differentiate between the different types and scopes of options.
Variants§
BuildEnvironment(BuildEnvironmentOption)
Package(PackageOption)
Trait Implementations§
Source§impl AlpmParser for MakepkgOption
impl AlpmParser for MakepkgOption
Source§fn parser(input: &mut &str) -> ModalResult<Self>
fn parser(input: &mut &str) -> ModalResult<Self>
Recognizes any PackageOption and BuildEnvironmentOption in a
string slice.
§Errors
Returns an error if input does not begin with a valid MakepkgOption.
Source§impl Clone for MakepkgOption
impl Clone for MakepkgOption
Source§fn clone(&self) -> MakepkgOption
fn clone(&self) -> MakepkgOption
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MakepkgOption
impl Debug for MakepkgOption
Source§impl<'de> Deserialize<'de> for MakepkgOption
impl<'de> Deserialize<'de> for MakepkgOption
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for MakepkgOption
impl Display for MakepkgOption
Source§impl FromStr for MakepkgOption
impl FromStr for MakepkgOption
Source§impl PartialEq for MakepkgOption
impl PartialEq for MakepkgOption
Source§fn eq(&self, other: &MakepkgOption) -> bool
fn eq(&self, other: &MakepkgOption) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MakepkgOption
impl Serialize for MakepkgOption
impl Eq for MakepkgOption
impl StructuralPartialEq for MakepkgOption
Auto Trait Implementations§
impl Freeze for MakepkgOption
impl RefUnwindSafe for MakepkgOption
impl Send for MakepkgOption
impl Sync for MakepkgOption
impl Unpin for MakepkgOption
impl UnsafeUnpin for MakepkgOption
impl UnwindSafe for MakepkgOption
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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<&'a str, U, ErrMode<ContextError>>
fn parser_until<'a, P>( delimiter: P, ) -> impl Parser<&'a str, U, ErrMode<ContextError>>
Returns a [Parser] that parses Self until the given delimiter parser
matches.
§Note
Does not consume the delimiter.
Source§fn parser_until_eof(input: &mut &str) -> Result<Self, ErrMode<ContextError>>
fn parser_until_eof(input: &mut &str) -> Result<Self, ErrMode<ContextError>>
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<&'a str, U, ErrMode<ContextError>>
fn parser_until_inclusive<'a, P>( delimiter: P, ) -> impl Parser<&'a str, U, ErrMode<ContextError>>
Returns a [Parser] that parses the whole input and consumes the given delimiter parser.
Delegates to ParserUntil::parser_until and consumes the delimiter.