#[non_exhaustive]pub enum ProjectBuildArgs {
Map(Vec<ProjectBuildArgEntry>),
List(Vec<ProjectValue<String>>),
}Expand description
Effective build arguments retaining their mapping or list syntax.
Mapping entries merge by exact argument name. List entries remain raw ordered strings, so duplicates and bare argument names are not normalized or resolved from the environment.
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.
Map(Vec<ProjectBuildArgEntry>)
Mapping syntax with keyed argument entries.
List(Vec<ProjectValue<String>>)
List syntax with raw ordered argument strings.
Implementations§
Source§impl ProjectBuildArgs
impl ProjectBuildArgs
Sourcepub fn as_map(&self) -> Option<&[ProjectBuildArgEntry]>
pub fn as_map(&self) -> Option<&[ProjectBuildArgEntry]>
Returns mapping entries when the effective build arguments use mapping syntax.
Sourcepub fn as_list(&self) -> Option<&[ProjectValue<String>]>
pub fn as_list(&self) -> Option<&[ProjectValue<String>]>
Returns raw ordered entries when the effective build arguments use list syntax.
Trait Implementations§
Source§impl Clone for ProjectBuildArgs
impl Clone for ProjectBuildArgs
Source§fn clone(&self) -> ProjectBuildArgs
fn clone(&self) -> ProjectBuildArgs
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 ProjectBuildArgs
impl Debug for ProjectBuildArgs
impl Eq for ProjectBuildArgs
Source§impl PartialEq for ProjectBuildArgs
impl PartialEq for ProjectBuildArgs
impl StructuralPartialEq for ProjectBuildArgs
Auto Trait Implementations§
impl Freeze for ProjectBuildArgs
impl RefUnwindSafe for ProjectBuildArgs
impl Send for ProjectBuildArgs
impl Sync for ProjectBuildArgs
impl Unpin for ProjectBuildArgs
impl UnsafeUnpin for ProjectBuildArgs
impl UnwindSafe for ProjectBuildArgs
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