#[non_exhaustive]pub enum DeclarationField {
Show 14 variants
Name,
Dep,
Input,
Output,
Env,
Run,
Rule,
Description,
Target,
SettingName,
SettingValue,
Freshness,
Stdout,
Subdir,
}Expand description
Which field of a declaration an Error::InvalidDeclaration is about.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Name
A target’s, rule’s or alias’s name.
Dep
An entry of deps.
Input
An entry of inputs.
Output
An entry of outputs.
Env
An entry of env.
Run
The run command or one of its arguments.
Rule
The rule reference.
Description
A rule’s desc.
Target
An alias’s target.
SettingName
A setting’s name.
SettingValue
A setting’s default value.
Freshness
A target’s always flag.
Stdout
A target’s stdout flag.
Subdir
A subdir request.
Trait Implementations§
Source§impl Clone for DeclarationField
impl Clone for DeclarationField
impl Copy for DeclarationField
Source§impl Debug for DeclarationField
impl Debug for DeclarationField
Source§impl Display for DeclarationField
impl Display for DeclarationField
impl Eq for DeclarationField
Source§impl PartialEq for DeclarationField
impl PartialEq for DeclarationField
impl StructuralPartialEq for DeclarationField
Auto Trait Implementations§
impl Forget for DeclarationField
impl Freeze for DeclarationField
impl Move for DeclarationField
impl RefUnwindSafe for DeclarationField
impl Send for DeclarationField
impl Sync for DeclarationField
impl Unpin for DeclarationField
impl UnsafeUnpin for DeclarationField
impl UnwindSafe for DeclarationField
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